id: aspx-debug-mode

info:
  name: ASP.NET Debugging Enabled
  author: dhiyaneshDk
  severity: info
  reference:
    - https://portswigger.net/kb/issues/00100800_asp-net-debugging-enabled
  metadata:
    max-request: 1
  tags: debug,misconfig

http:
  - raw:
      - |
        DEBUG /Foobar-debug.aspx HTTP/1.1
        Host: {{Hostname}}
        Command: stop-debug
        Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
        Content-Length: 2

    matchers:
      - type: dsl
        dsl:
          - 'len(body) == 2'
          - 'regex("^OK$", body)'
          - 'status_code == 200'
        condition: and
# digest: 4a0a0047304502202880306ee18861412e3d5f8be76d637fb08e329d5afe079f63b90753112bd038022100911d39f9b504e6bb71621b7f563a1dc1ea4a3cb8947eb7f62a0b5bc8e25535cb:922c64590222798bb761d5b6d8e72950