
Threaded scanner and proof-of-concept for CVE-2012-3152, detecting unauthenticated arbitrary file read in Oracle Reports rwservlet via JOBTYPE=rwurl file:// probes.

Fast YAML-based vulnerability scanner with template-driven detection engine for automated security testing across web apps, APIs, networks, DNS, and cloud infrastructure.

Open-source web application security scanner for automated vulnerability detection, manual penetration testing, and API security testing with a proxy-based interception engine.

This repository contains the scanner component for Greenbone Community Edition.
Oracle Reports rwservlet - Arbitrary File Read
| field | value |
|---|---|
| CVE | CVE-2012-3152 |
| severity | critical |
| CVSS | 9.1 (record); NVD primary CVSS:3.1 9.1 CRITICAL, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N; EPSS 0.98881 (0.99926 percentile) |
| fixed in | October 2012 Oracle Critical Patch Update (affected per NVD: Fusion Middleware 11.1.1.4, 11.1.1.6, 11.1.2.0) |
| class | arbitrary file read via rwservlet JOBTYPE=rwurl + URLPARAMETER=file:// (NVD lists NVD-CWE-noinfo); in the CISA KEV catalog since 2021-11-03 |
| scanner version | 1.0.0 |
| python | 3.8+ stdlib only, no third-party deps |
If you want the exploit, find it here: https://satoshidisk.com/pay/CT5RRo
Oracle Reports Developer in Oracle Fusion Middleware 11.1.1.4, 11.1.1.6 and 11.1.2.0 (and earlier 10g/11g releases per the original researcher) lets unauthenticated attackers read and write arbitrary files through the reports/rwservlet URLPARAMETER feature. A GET with JOBTYPE=rwurl and URLPARAMETER set to a file:// URL makes the Reports servlet open that path and echo the raw bytes with content-type application/octet-stream (OSVDB-86395, EDB 31253). Patched in the October 2012 Oracle CPU; listed in the CISA Known Exploited Vulnerabilities catalog.
Combined with CVE-2012-3153 (which adds files) this has been used to upload a JSP shell and get code execution. The template and both scripts here only perform a safe file:// read of /etc/passwd or Windows C:/Windows/win.ini and do not write files.
The October 2012 Oracle CPU describes this as an unspecified vulnerability in the Oracle Reports Developer component of Oracle Fusion Middleware 11.1.1.4, 11.1.1.6 and 11.1.2.0 that allows remote attackers to affect confidentiality and integrity via unknown vectors related to the Report Server Component. The original researcher (Full Disclosure, Jan 2014) showed the concrete vectors: the rwservlet endpoint honours JOBTYPE=rwurl with a caller-supplied URLPARAMETER, so file:///etc/passwd (Linux) or file:///C:/Windows/win.ini (Windows) is returned verbatim, and the sibling CVE-2012-3153 writes a .jsp through the same handler for code execution.
Detection is two requests, exactly like the template (flow: http(1) && http(2), max-request: 2): first the home page is fingerprinted for the string oracle business, then the rwurl read probe runs with stop-at-first-match between the linux-passwd matcher (status 200, body matches regex root:.*:0:0:, content-type contains application/octet-stream) and the windows-winini matcher (status 200, body contains [fonts] and [extensions], content-type contains application/octet-stream). The OR-pair matcher condition plus the octet-stream content-type is what separates a live rwurl echo from the HTML shell of the same page.
GET / must return 200 with oracle business in the lowercased body (template internal matcher, condition: and); if it misses, the probes are not scored, mirroring flow: http(1) && http(2).GET /reports/rwservlet?report=test.rdf&desformat=html&destype=cache&JOBTYPE=rwurl&URLPARAMETER=file:///etc/passwd; linux-passwd matcher = 200 AND regex root:.*:0:0: AND application/octet-stream in content-type.stop-at-first-match: true): same query with URLPARAMETER=file:///C:/Windows/win.ini; windows-winini matcher = 200 AND [fonts] AND [extensions] AND octet-stream content-type.matchers-condition: or over the two probes: vulnerable = identify AND (linux-passwd OR windows-winini); the matched name (linux-passwd / windows-winini) is recorded in the details.error, not not-vuln.--json sidecar mirrors the same rows for tooling.Scanner:
python scanner/CVE-2012-3152/scanner.py urls.txt [threads] [out.csv] [--json out.json]
urls.txt takes one target per line (# comments skipped, scheme auto-prepended when missing), e.g. reports.local or http://reports.local:8888. Oracle Reports is commonly served on 8888 (or behind the WebLogic port 7001) with the servlet under /reports/rwservlet.
python exploit/CVE-2012-3152/exploit.py http://reports.local:8888 [--csv out.csv] [--json out.json] [--verbose]
It fetches the home page for identification, replays the rwurl file:// probe (win.ini fallback on miss), prints numbered checks 1 to 7, the result dict, and the final verdict line.
RCE POC SUITE
scanner : CVE-2012-3152 v1.0.0 (Oracle Reports Developer, Fusion Middleware 11.1.1.4 / 11.1.1.6 / 11.1.2.0)
endpoint: GET /reports/rwservlet?report=test.rdf&desformat=html&destype=cache&JOBTYPE=rwurl&URLPARAMETER=file:///etc/passwd (fallback file:///C:/Windows/win.ini)
threads : 4 | csv: cve3152.csv | json: cve3152.json
[2026-12-03 12:36:48] loaded 1 target(s) from urls.txt
[2026-12-03 12:36:48] [1/1] http://reports.local:8888 -> VULNERABLE
[2026-12-03 12:36:48] json sidecar saved: cve3152.json
[2026-12-03 12:36:48] summary: total=1 vulnerable=1 not-vuln=0 errors=0
[2026-12-03 12:36:48] timing : avg=12ms max=12ms wall=0.01s
[2026-12-03 12:36:48] report saved: cve3152.csv
| column | meaning |
|---|---|
| n | 1-based row number |
| url | target as provided (scheme auto-prepended when missing) |
| status | ok when a status line was seen, error otherwise |
| vulnerable | check() verdict: identification AND one file-read matcher |
| elapsed_ms | per-target wall time |
| token | 12-char md5 over the JSON details (exec-vs-reflection proof) |
| result_b64 | base64(JSON) with identify, probe_linux, optional probe_windows, chosen probe, matcher flags, matched, elapsed_ms, token |
scanner/CVE-2012-3152/scanner.py - threaded black-box scanner, streamed CSV + JSON sidecar.exploit/CVE-2012-3152/exploit.py - two-stage POC with numbered checks and the token comparison.scanner/CVE-2012-3152/README.md - this note.scanner/CVE-2012-3152/DESCRIPTION.md - architecture, probe plan, token scheme, contracts.0 - at least one target produced a status line (scanner) or the token comparison verified (POC).2 - every target errored out (scanner) or the final token comparison failed (POC, by design, see DESCRIPTION.md section 3).http/cves/2012/CVE-2012-3152.yaml (projectdiscovery/nuclei-templates)