Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Potential issue in Android client when using step-up authentication with simpleSAMLphp #12

Open
safar opened this issue Sep 20, 2012 · 6 comments
Assignees

Comments

@safar
Copy link

safar commented Sep 20, 2012

When using tiqr in step-up scenario, with simpleSAMLphp 1.9.2, Android client cannot authenticate users that have '@' symbol in theirs userID.

Android client gives "Unknown identity for service, please enroll first." error when the user that has already enrolled tries to log in.

I have already tried to debug this issue with Ivo Jansch so here's what I have collected thus far:

I have setup a normal login without step-up and it works fine even on Android devices.

The problem still persists when I enable step-up authentication.

I have collected some data which I used for debugging with QR scanning app.

QR content from normal authentication and step up:

Enroll normal:

tiqrenroll://http://dev4.srce.hr/tiqr_simplesaml/module.php/authTiqr/metadata.php?key=3b4e8f84c2e1912d7909567c0a7bb4f9

Login normal:

tiqrauth://dev4.srce.hr/a1c0b826c7621113bf39f4bf7b885bb9/e68746f63a/dev4.srce.hr

Enroll step-up:

tiqrenroll://http://dev4.srce.hr/tiqr_simplesaml/module.php/authTiqr/metadata.php?key=5c3663218bb5722069e53dba7eb03a75

Login step-up:

tiqrauth://randomaccount%[email protected]/dbc6a17d1a88ff0dc741c52fd65ebe7d/18675041be/dev4.srce.hr

The only difference is that step-up login QR code contains randomaccount%[email protected].

Could it be that '%40' is unescaped too early in tiqr Android client? I'm guessing that '@' symbol is used as a delimiter of userID and serviceID, so if it gets two '@' symbols in received QR it could delimit it incorrectly and the client would assume that enrollment hasn't been done as the identifier is incorrect.

Unfortunately all our userIDs contain '@' symbol so I cannot test the scenario where userID doesn't contain '@' symbol.

Note:

iOS client works normally so it could be a good starting point to see iOS's code and spot the difference in logic used during step-up authentication and interpreting QR data.

@safar
Copy link
Author

safar commented Nov 12, 2012

Can you please confirm that this bug exists in Android client.

Also can you tell me which class is responsible for validating step up authentication messages in Android client so I can look it up myself. (and save some time)

Thanks in advance.

@ijansch
Copy link
Contributor

ijansch commented Dec 20, 2012

We expect a fix for this this week. New versions of the apps will be submitted early January, but the fix will be available on github as soon as we have it.

@ghost ghost assigned lineke Dec 20, 2012
@safar
Copy link
Author

safar commented Jun 18, 2013

Is this issue fixed in the current Android code?

I see you have published a new iOS client, any news on releasing Android client that would fix this bug?

@rijswijk
Copy link

Hi Safar,

safar wrote:

Is this issue fixed in the current Android code? I see you have
published a new iOS client, and news on fixed Android client?

It should be, yes. My colleague Joost (on cc) can send you an APK of the
new Android version. The code is also available on Github.

Cheers,

Roland

-- Roland M. van Rijswijk - Deij
-- SURFnet bv
-- w: http://www.surfnet.nl/en/
-- t: +31-30-2305388
-- e: [email protected]

@safar
Copy link
Author

safar commented Jun 19, 2013

Can you please send me the APK of the new version with implemented bug fix?

Cheers,

Dario

On 19 June 2013 10:03, Roland van Rijswijk [email protected] wrote:

Hi Safar,

safar wrote:

Is this issue fixed in the current Android code? I see you have
published a new iOS client, and news on fixed Android client?

It should be, yes. My colleague Joost (on cc) can send you an APK of the
new Android version. The code is also available on Github.

Cheers,

Roland

-- Roland M. van Rijswijk - Deij
-- SURFnet bv
-- w: http://www.surfnet.nl/en/
-- t: +31-30-2305388
-- e: [email protected]


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-19668441
.

@joostd
Copy link
Contributor

joostd commented Jun 19, 2013

A beta is available at:
https://tiqr.org/wp-content/uploads/2013/06/MobileAuth.apk_.zip

First unzip - our wordpress doesn't allow us to upload .apk files.

Cheers,

Joost

On Jun 19, 2013, at 1:20 PM, safar [email protected] wrote:

Can you please send me the APK of the new version with implemented bug fix?

Cheers,

Dario

On 19 June 2013 10:03, Roland van Rijswijk [email protected] wrote:

Hi Safar,

safar wrote:

Is this issue fixed in the current Android code? I see you have
published a new iOS client, and news on fixed Android client?

It should be, yes. My colleague Joost (on cc) can send you an APK of the
new Android version. The code is also available on Github.

Cheers,

Roland

-- Roland M. van Rijswijk - Deij
-- SURFnet bv
-- w: http://www.surfnet.nl/en/
-- t: +31-30-2305388
-- e: [email protected]


Reply to this email directly or view it on GitHubhttps://github.com//issues/12#issuecomment-19668441
.


Reply to this email directly or view it on GitHub.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants