Detecting Vulnerable OAuth 2.0 Implementations in Android Applications

OAuth 2.0, a prevalent authorization framework, can be vulnerable to cross-site request forgery (CSRF) attacks, thus requiring developers' due diligence during implementation in Android applications. A key countermeasure includes a state parameter in the URL during the login transition. However...

Full description

Saved in:
Bibliographic Details
Published in2023 IEEE 23rd International Conference on Software Quality, Reliability, and Security Companion (QRS-C) pp. 524 - 531
Main Authors Damkham, Waris, Kunihiro, Shingo, Teerakanok, Songpon, Uehara, Tetsutaro
Format Conference Proceeding
LanguageEnglish
Published IEEE 22.10.2023
Subjects
Online AccessGet full text

Cover

Loading…
More Information
Summary:OAuth 2.0, a prevalent authorization framework, can be vulnerable to cross-site request forgery (CSRF) attacks, thus requiring developers' due diligence during implementation in Android applications. A key countermeasure includes a state parameter in the URL during the login transition. However, lacking state parameter doesn't necessarily imply an inherent vulnerability to CSRF attacks. To investigate this further, we developed an Android application to analyse other Android applications using OAuth 2.0 with Google accounts, focusing primarily on the utilisation of the state parameter in CSRF attack prevention. Our investigation involves assessing the login procedures of applications via both the Chrome application and the default browser. Through this, we aim to identify the presence or absence of the state parameter and the authorization code, critical components in a robust CSRF defence strategy. Our findings allow us to evaluate if Android applications using OAuth 2.0 have basic protections against CSRF attacks. The results of our research could protect users by identifying and discouraging the use of Android applications that employ OAuth 2.0 for social login yet remain vulnerable to CSRF attacks.
ISSN:2693-9371
DOI:10.1109/QRS-C60940.2023.00024