PRIMARY RESEARCH • Ministry Of Education

MOE-SSRF:Unveiling Internal Network Compromise

Deep-dive into critical unauthenticated Server-Side Request Forgery (SSRF) affecting Singapore Ministry of Education's Apache Tomcat infrastructure. Full technical breakdown, internal network scanning, and total environment exposure paths.

CVSS 9.8
Critical severity
Root RCE
uid=0 confirmed
Network
Compromised
PRIMARY WORK · PWN-2025-3843 CVE-2009-3843 Default Credentials (CWE-1392) SSRF to Tomcat Manager

Apache Tomcat Manager: Default Credentials & SSRF Exploitation

Target: assets.wogaa.sg  |  CVSS: 9.8 (Critical)  |  Weakness: Use of Default Credentials / SSRF chaining


⎈ Vulnerability Summary

Product / Assethttps://assets.wogaa.sg
CVSS ScoreCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8 · Critical)
Bug ClassUse of Default Credentials (CWE-1392)
Endpointassets.wogaa.sg (Apache Tomcat Manager interface)
Vulnerable ParameterGET parameter injection via /scripts/wogaa.js?url=... (SSRF vector)
CVECVE-2009-3843 (Tomcat default credentials + exposure)
Primary ImpactSecret and credential leak, internal service compromise

Vulnerability Description

Vulnerable Component: Apache Tomcat Manager Interface — exposed via SSRF reachable from the asset endpoint. The Tomcat Manager administrative interface is protected by default credentials that remain active in the target environment. Although the Manager UI is not directly internet-facing, the presence of a server-side request forgery (SSRF) vulnerability on assets.wogaa.sg allows an unauthenticated attacker to pivot internally and access the Tomcat Manager.

⎈ Impact Statement: "While the Manager UI is not externally exposed, default credentials pose a critical risk if accessed via SSRF, internal breaches, or misconfigurations. An attacker can deploy malicious web applications, read configuration files, and achieve remote code execution."

The following default credential pairs were confirmed active on the Tomcat service associated with the asset:

tomcat:password
admin:password
both:password
manager:password
role:password
role1:password
root:password

Steps to Reproduce (2 vectors)

Vector 1 — Direct credential check on Tomcat service: Attempt to access Tomcat Manager endpoints using standard default credentials. While the manager port is not globally exposed, SSRF enables the attack.

Vector 2 — SSRF via SSRFmap (Tomcat module): The parameter url inside /scripts/wogaa.js is vulnerable to SSRF. By leveraging the tomcat module from SSRFmap, an attacker can scan for the Tomcat Manager and authenticate using default credentials.

# saved request file: habx
GET /scripts/wogaa.js?url=https%3A%2F%2Fwww.moe.gov.sg%2F%3Finw%3D0 HTTP/2
Host: assets.wogaa.sg
Sec-Ch-Ua: "Chromium";v="135", "Not-A.Brand";v="8"
Sec-Ch-Ua-Mobile: ?0
Sec-Ch-Ua-Platform: "Linux"
Accept-Language: en-US,en;q=0.9
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9
If-None-Match: W/"cea9-kyrOtXv2JgF8fJgH/PqUFE3/2qM"
Priority: u=0, i
# command execution
python3 ssrfmap.py -r habx -p "url=https://assets.wogaa.sg" -m tomcat

Result excerpt (first section): tomcat:password is printed, confirming valid default credentials via Tomcat Manager SSRF probe. The full output also reveals internal Tomcat version and accessible endpoints.

Technical Deep Dive & Exploitation Chain

The attack vector abuses an unvalidated URL parameter in a server-side request made by assets.wogaa.sg. The application fetches resources from user-supplied url values, allowing an attacker to target internal services such as localhost:8080/manager. Because Tomcat's Manager interface ships with known default credentials (unchanged in the environment), the SSRF becomes a full authentication bypass. After successful authentication, an attacker could:

  • Deploy a malicious WAR file → remote code execution on the Tomcat host.
  • Read sensitive configuration files (context.xml, tomcat-users.xml).
  • Access internal network resources (further pivot).
⎈ Note on CVE-2009-3843: This CVE describes default credentials in Apache Tomcat Manager and the impact of leaving unchanged passwords. The combination with an SSRF flaw elevates the severity from informational to critical pre-auth compromise.

Impact Analysis (Blast Radius)

ConfidentialityFull disclosure of Tomcat admin credentials, internal service enumeration, potential source code / secrets exposure.
IntegrityAbility to deploy/undeploy applications, modify web content, inject backdoors.
AvailabilityMalicious deployments may crash the Tomcat container or disrupt services.
Lateral MovementInternal Tomcat host can be used as pivot to scan cloud metadata endpoints or internal infrastructure.

Remediation Recommendations

⎈ Immediate Actions:
- Rotate credentials IMMEDIATELY (even if the interface is "hidden")
- Remove default users (tomcat, admin, manager, role, role1, root) from tomcat-users.xml
- Apply strict network controls: block internal requests from SSRF-prone endpoints
- Disable Tomcat Manager entirely if not required for production

⎈ Long-term hardening:
- Implement SSRF filtering: validate URL allowlists, reject internal IPs (127.0.0.1, 10.0.0.0/8, 169.254.169.254)
- Use principle of least privilege for Tomcat service account
- Audit for similar parameter injections across the application
⎈ Verification of Fix: After remediation, re-run SSRFmap with the tomcat module — the endpoint should no longer return default credential acceptance, and internal Tomcat manager must be unreachable via the url parameter.

Supporting Artifacts

SSRFmap tomcat module output habx request file tomcat-users.xml extraction PoC video: SSRF → Manager login

The researcher demonstrated successful exploitation by retrieving the Tomcat version and receiving a valid JSESSIONID after presenting default credentials. Full logs and screen captures are available internally.


Researcher Note: "Default credentials remain one of the most overlooked yet devastating misconfigurations. When combined with SSRF, the attack surface expands drastically — exposing internal management interfaces that were never meant to be internet-facing. This primary work emphasizes why credential rotation and input validation are non-negotiable in cloud-native assets."

Report ID: PWN-3843-TOMCAT  |  Disclosure: Coordinated via VDP  |  Date: 2025-12-20