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,vuln

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: 4a0a00473045022100872872eefbf60c7b46a6805781f196d2cd31f4f619fa1c27a42d684f67dd56b20220613b922dcebdfae8740b68d898ace83693456ea9a2c94e052e0095dbe5a2abf5:922c64590222798bb761d5b6d8e72950