mitmweb-unauth: mitmweb - Unauthenticated Web Interface Access

2026-12-06 PoC Public

Description

mitmweb, the web interface of the mitmproxy intercepting proxy, had no authentication before mitmproxy 11.1.2. An exposed mitmweb without authentication lets anyone read every intercepted request and response, including credentials and session cookies of the proxied clients, and change proxy options, replay or modify flows through its API.

Details

Severity
高危
Published
PoC
Public

PoC

id: mitmweb-unauth

info:
  name: mitmweb - Unauthenticated Web Interface Access
  author: franco944796
  severity: high
  description: |
    mitmweb, the web interface of the mitmproxy intercepting proxy, had no authentication before mitmproxy 11.1.2. An exposed mitmweb without authentication lets anyone read every intercepted request and response, including credentials and session cookies of the proxied clients, and change proxy options, replay or modify flows through its API.
  remediation: |
    Upgrade mitmproxy to 11.1.2 or later so that mitmweb requires its authentication token (or set web_password), keep web_host bound to localhost, and do not expose the web interface to untrusted networks.
  reference:
    - https://github.com/mitmproxy/mitmproxy/blob/main/CHANGELOG.md
    - https://github.com/mitmproxy/mitmproxy/security/advisories/GHSA-wg33-5h85-7q5p
  classification:
    cwe-id: CWE-306
  metadata:
    verified: true
    max-request: 1
    vendor: mitmproxy
    product: mitmproxy
    fofa-query: body="mitmproxy" && body="contentViews"
  tags: mitmweb,mitmproxy,proxy,exposure,misconfig,unauth

http:
  - raw:
      - |
        GET /state.json HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains(to_lower(header), "mitmproxy")'
          - 'contains_all(body, "\"version\":", "\"contentViews\":")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '"version":\s*"([0-9.]+)"'
# digest: 4a0a0047304502203fff797fba0f0aaab6ad11dd88a83071f8a19a7622c3a630c24ddd11df99cc0e022100c757efe23e98d2983c8db4f6751937502e8d5997a7caa250429acff444fd323e:922c64590222798bb761d5b6d8e72950

# Visit https://trap.biu.life/ to view exploit trends for this vulnerability.

References

微信搜一搜 biu.life