id: esmtprc-config

info:
  name: eSMTP - Config Discovery
  author: geeknik
  severity: high
  description: eSMTP configuration was discovered.
  reference:
    - https://linux.die.net/man/5/esmtprc
  metadata:
    max-request: 1
  tags: esmtp,config,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/.esmtprc"

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "text/plain"

      - type: word
        part: body
        words:
          - "hostname"
          - "username"
          - "password"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a0046304402204e52f76d172d880e6cafc828ff21aeab51e32d695cc516efae6d744a8cd6fd3c022022b1739652f4b9441a23993f0907d6ff272ed97d61f5de6cf90adb067d109a25:922c64590222798bb761d5b6d8e72950