id: clockwork-php-page

info:
  name: Clockwork PHP page exposure
  author: organiccrap
  severity: high
  description: |
    Clockwork php page was exposed, which allows admins to profile and debug the application, view database queries, HTTP requests, and other details right from the browser's developer tools.
  reference:
    - https://twitter.com/damian_89_/status/1250721398747791360
  metadata:
    max-request: 1
  tags: tech,clockwork,exposure,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/__clockwork/app'

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: word
        words:
          - <title>Clockwork</title>
          - <html ng-app="Clockwork" ng-csp="">
        part: body
        condition: or
# digest: 490a00463044022015136a19ce5c4460dd4386b14c9e7997f765f39761cdbcc899a00ffaed31ac5a02202b0941cb5b13b01c3af3b86c885c290aaf78c16da90dde845a1774ab1a0d7b95:922c64590222798bb761d5b6d8e72950