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

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: 4a0a004730450220688a320a7d8aafed59fa3b166d6461d31edd63a44da975acde3ab6b49e8e1157022100dbc814a692790330e279b3cdead6ba358fc425402cdb018f3783bef8e5a3bf20:922c64590222798bb761d5b6d8e72950