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: 490a0046304402205bfc4f701434be084ac0a7b227c044242be341254a63b3ec9b6e583285d44f4702204c3ca61ac7cb0f201f5f354db35369ad43957b60ddcbf8d4901f6ec81dd3c863:922c64590222798bb761d5b6d8e72950