OAuth login misuses let attackers impersonate users in thousands of mini-programs
Improper integration of OAuth-based authentication in mini-programs enables attacker impersonation at scale
Security & privacy arXiv 9 Jul 2026 Measurement Prototype evidence
Published as “Mini-Programs, Mega-Problems: Unveiling OAuth-based Authentication Misuses in Mini-Programs via Dynamic Analysis”
Why it matters
Widespread OBA misuses and a practical cryptographic flaw mean millions of users of popular services are vulnerable to account takeover and data leakage.
Summary
The study finds 1,834 OAuth-based authentication misuse cases across 46,000 WeChat and Baidu mini-programs, affecting 13.8% of WeChat and 45.4% of Baidu apps, and reveals a platform cryptographic flaw that enables practical brute-force of session keys. Evidence is strong: large-scale real-world dataset, manual validation showing only 3% false positives and no observed false negatives, and a comparison showing prior static tools miss most of these issues.
What they found 2
- 1,834 OBA misuse cases were uncovered in the wild.
“we uncover 1,834 misuse cases, including critical logic flaws that enable client-side identity forgery via exposed credentials and authentication bypass through static or plaintext identifiers.”
- M1a misuse enables client-side identity construction and impersonation.
“This sequence enables attackers to perform client-side identity construction and successfully impersonate victim users.”
Caveats 4
- False positives were observed: 3% of sampled WeChat programs were incorrectly flagged for M3 misuse.
- The dynamic analyzer can be evaded when mini-programs detect the MITM proxy, causing analysis to abort.
- its dynamic analyzer depends on successful UI rendering and stable network connectivity. In some cases, mini-programs may detect the presence of an MITM-based HTTP proxy, which is used by MiniAuth to monitor traffic. When such detection occurs, the mini-program may refuse to load content or terminate the authentication flow, preventing further analysis.
- for enterprise or internal-only mini-programs that adopt an extra layer of traffic encryption, MiniAuth is unable to extract meaningful information from the traffic.
What’s new here 4
- First dynamic analysis framework (MiniAuth) to detect OBA misuses at runtime in mini-programs.
- Handles heavily obfuscated mini-programs using OCR-assisted login page identification.
- Cross-platform coverage (WeChat and Baidu) revealing consistent misuse patterns.
- Discovers a platform-level cryptographic design flaw (IV reuse) enabling feasible brute-force attacks.