id: core-dump

info:
  name: Exposed Core Dump - File Disclosure
  author: kazet
  severity: medium
  description: Exposed Core Dump internal file is disclosed.
  reference:
    - https://github.com/hannob/snallygaster/blob/4c5a9b54501f64da96787c2a2e3a12ce2e09c1ab/snallygaster#L295
  metadata:
    verified: true
    max-request: 1
  tags: exposure,files,core-dump

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

    matchers:
      - type: regex
        regex:
          - '^\x7fELF'
# digest: 4a0a00473045022069c630d7e78df694c07c2fe1beeacd44e93b206fc76e8fef27aed1dbf80c8e20022100868cf530fa1d9bd819c0a68853f821f15e70e368cf2120fff57f78e8473820ce:922c64590222798bb761d5b6d8e72950