id: smtp4dev-interface-exposed

info:
  name: SMTP4Dev Interface - Exposed
  author: DhiyaneshDk
  severity: high
  description: |
    Publicly exposed smtp4dev interface allowing access to intercepted emails and test configurations.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"smtp4dev"
  tags: smtp4dev,misconfig,exposure,mail,interface

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<title>smtp4dev</title>"
        case-insensitive: true

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100fa32eb4e20fa25dda96311d6566f063821689acd56a01deb5c8167d33e53758d022100e4372dcaaf40bc150f1668061cee0863fdddb4ee1a8a0e23b0ade891c7c7bce4:922c64590222798bb761d5b6d8e72950