CVE-2021-35464 in forgerock access management
LogPulse has a published detection rule for this CVE: it raises a notable when someone tries to exploit it.
What the vulnerability is
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
Affected software: forgerock access management, forgerock openam
Scores
- CVSS: 9.8 (critical)
- EPSS: 100.00% chance of exploitation in the next 30 days
- CISA KEV: Known exploited, listed 2021-11-03, used in ransomware
- Published: 2021-07-22
What LogPulse has for it
- Detection rule: Yes, published
- Agent check (vulnerable version): No
- Mitigation: Yes, see below
How to mitigate it
Upgrade ForgeRock AM / OpenAM to 7.0 or later, or block /ccversion/ until patched (CVE-2021-35464)
Patch or upgrade. ForgeRock Access Management and OpenAM before 7.0 deserialize the jato.pageSession parameter without authentication, which gives remote code execution through a single /ccversion/* request. Upgrading to AM 7.0 or later (or applying the ForgeRock security patch for your release) removes the flaw; blocking /ccversion/ at the reverse proxy closes the known entry point until then.
Applies to: ForgeRock Access Management (AM) before 7.0 and ForgeRock OpenAM, including community OpenAM forks based on it that still ship the JATO console.
- Find every ForgeRock AM / OpenAM server and note its version (admin console, or the version in the deployed openam WAR).
- Read ForgeRock security advisory KB a47894244 (link below) for the patch or upgrade path for your release.
- Upgrade to ForgeRock AM 7.0 or later, or install the ForgeRock security patch for your 6.x release as the advisory describes, and restart the servlet container.
- Until the upgrade is done: on the reverse proxy or load balancer in front of AM, deny every request whose path contains /ccversion/ (for example nginx: location ~ /ccversion/ { return 403; }).
- Do not expose the AM administration and legacy console paths to the internet.
- Check the web access logs for earlier /ccversion/ requests with jato.pageSession and for unexpected child processes of the Java process; treat a hit before patching as a possible compromise.
Sources:
Source data: NIST NVD, CISA KEV and FIRST EPSS. LogPulse processes new CVEs every hour.
We build every detection with great care, but no two environments are the same. Log sources, parsing and configuration differ, so test a detection in your own environment before you rely on it.