id: opcache-control-panel

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

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