Description
code100x contains an authentication bypass vulnerability in the Mobile API that allows unauthenticated attackers to impersonate arbitrary users by supplying a crafted JSON payload in the 'g' HTTP header. The middleware in middleware.ts skips identity header generation when an Auth-Key header is present without validating its value, allowing attackers to inject a spoofed user identity header that the downstream route handler in the mobile courses endpoint accepts as trusted, granting unauthorized access to course data belonging to any enrolled user or administrator.
Problem types
CWE-639 Authorization Bypass Through User-Controlled Key
Product status
Any version before 90b489ee7c63c301107d6374d4b3f2b8e4060fe5
Any version before 88c6c5e94e23da101235c4c7e9c7591ac1016549
Credits
Shravan Manne
VulnCheck
References
github.com/code100x/cms/issues/1924
github.com/code100x/cms/pull/1927
github.com/code100x/cms/issues/1924
github.com/code100x/cms/pull/1927
github.com/...anges/90b489ee7c63c301107d6374d4b3f2b8e4060fe5
github.com/...anges/88c6c5e94e23da101235c4c7e9c7591ac1016549
www.vulncheck.com/...thentication-bypass-via-header-spoofing