id: opache-control-panel

info:
  name: Opache control Panel - Unauthenticated Access
  author: pussycat0x
  severity: medium
  description: Opache control Panel is exposed.
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.title:"Opcache Control Panel"
  tags: misconfig,opache,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/ocp.php"

    stop-at-first-match: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(body, "Opcache Control Panel", "Reset", "Files")'
        condition: and
# digest: 4a0a0047304502205492a821f26637770551bb717e0acb0484ee99d0e471dcb1b489c6aa4920415502210098ffbf6a39080639f1651d94ca81283d19ab6e5e63dba778dc5a5a0dc3322ce7:922c64590222798bb761d5b6d8e72950