Description
Infinity for Reddit through 8.3.4 contains a login cross-site request forgery vulnerability that allows attackers to log victims into an attacker-controlled account because the exported LoginChromeCustomTabActivity redirect handler checks a hardcoded OAuth state value. Attackers can authorize the app's client ID with their own Reddit account, then deliver an infinity://localhost redirect containing their code and the constant state, causing the victim's posts, messages, and browsing to occur on the attacker's account.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Docile-Alligator | Infinity for Reddit | ≤ 8.3.4 | — |
References
- GitHub Issue #1975 issue-tracking
- https://github.com/Docile-Alligator/Infinity-For-Reddit product
- https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/v8.3.4/app/src/main/java/ml/docilealligator/infinityforreddit/activities/LoginChromeCustomTabActivity.java#L194-L205 technical-description
- https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/v8.3.4/app/src/main/java/ml/docilealligator/infinityforreddit/utils/APIUtils.java#L43 technical-description
- https://github.com/Docile-Alligator/Infinity-For-Reddit/blob/v8.3.4/app/src/main/AndroidManifest.xml#L75-L92 technical-description
- VulnCheck Advisory: Infinity for Reddit through 8.3.4 OAuth Login CSRF via LoginChromeCustomTabActivity third-party-advisory