ForgeRock OpenAM — 1 vulnerability check

noctis ships 1 vulnerability check for ForgeRock OpenAM, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

ForgeRock OpenAM <7.0 RCE — ccversion auth bypass

CVECVE-2021-35464
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/vulnerabilities/forgerock-openam/CVE-2021-35464.yaml

Tests ForgeRock OpenAM (<7.0) for the RCE precondition: unauthenticated reachability of the Jato `ccversion` Masthead.jsp version page via the Tomcat `..;/` path-parameter bypass. A vulnerable server returns the OpenAM "Version Information" page with HTTP 200 and a JSESSIONID cookie; a patched server removes/protects the endpoint and returns 404.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /openam/oauth2/..;/ccversion/Masthead.jsp HTTP/1.0
  2. Checks cc_resp.banner for Version Information[\s\S]*ccversion/Masthead\.jsp → finding QoD 75: Unauthenticated OpenAM ccversion Masthead.jsp reachable via ..;/ bypass (RCE precondition): …

References:

Feed source — tests/vulnerabilities/forgerock-openam/CVE-2021-35464.yaml
# ForgeRock OpenAM <7.0 Remote Code Execution — CVE-2021-35464
#
# ForgeRock Access Management (OpenAM) before 7.0 is vulnerable to a Java
# deserialization RCE in the embedded Jato framework. The exploitable
# precondition is reachable unauthenticated: the `ccversion` endpoint
# (Masthead.jsp "Version Information" page) is normally protected by the
# authentication filter, but the Tomcat path-parameter trick `..;/` lets an
# attacker reach it without credentials — e.g.
#   GET /openam/oauth2/..;/ccversion/Masthead.jsp
# A vulnerable, exploitable deployment returns HTTP 200 with the OpenAM
# version information page (and a fresh JSESSIONID), confirming both the
# unauthenticated reachability of the Jato-backed endpoints and the product.
#
# Detection (safe, non-intrusive — no deserialization payload is sent):
#   Raw GET with the `..;/` sequence (tcp_connect preserves it; reqwest would
#   normalise it away). Confirm the Masthead "Version Information" page is
#   returned with status 200 and a JSESSIONID cookie.
# QoD 75 — response analysis confirming the vulnerable endpoint is reachable.
uid: 6dcd6360-ee06-4cab-b5e1-a443194372fc
name: "ForgeRock OpenAM <7.0 RCE — ccversion auth bypass (CVE-2021-35464)"
description: |
  Tests ForgeRock OpenAM (<7.0) for the RCE precondition: unauthenticated
  reachability of the Jato `ccversion` Masthead.jsp version page via the
  Tomcat `..;/` path-parameter bypass. A vulnerable server returns the
  OpenAM "Version Information" page with HTTP 200 and a JSESSIONID cookie;
  a patched server removes/protects the endpoint and returns 404.
cves: [CVE-2021-35464]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [forgerock, openam, access-management, jato, deserialization, rce, auth-bypass, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2021-35464"
  - "https://github.com/Y4er/openam-CVE-2021-35464"
  - "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-35464.yaml"
  - "https://www.rapid7.com/db/?q=CVE-2021-35464"


steps:
  # ── Unauthenticated ccversion reach via `..;/` path-parameter bypass ─────
  # tcp_connect is required: the `..;/` sequence contains `..` which reqwest
  # would normalise/resolve away before sending, destroying the bypass.
  # Raw HTTP/1.0 over the socket preserves the exact request-target.
  - id: ccversion-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /openam/oauth2/..;/ccversion/Masthead.jsp HTTP/1.0\r\nHost: {{target_host}}\r\nAccept: */*\r\n\r\n"
    timeout_secs: 10
    store_as: cc_resp

  # Confirm the OpenAM version page is returned (genuine Masthead markers),
  # with a 200 status line and a JSESSIONID session cookie — all real-target
  # signals the Nuclei template / Metasploit module rely on.
  - id: ccversion-match
    action: match
    source: cc_resp.banner
    pattern: "Version Information[\\s\\S]*ccversion/Masthead\\.jsp"
    on_match:
      finding:
        confidence_delta: 0.65
        qod: 75
        evidence: "Unauthenticated OpenAM ccversion Masthead.jsp reachable via ..;/ bypass (RCE precondition): {{cc_resp.banner}}"
      stop: true

View these feeds on GitHub