id: ocs-inventory-login

info:
  name: OCS Inventory Login Panel - Detect
  author: pikpikcu,ritikchaddha
  severity: info
  description: OCS Inventory login panel was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cwe-id: CWE-200
  metadata:
    fofa-query: title="OCS Inventory"
    max-request: 2
    shodan-query: title:"OCS Inventory"
    verified: true
  tags: ocs-inventory,panel

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/ocsreports"

    stop-at-first-match: true
    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>OCS Inventory'

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100be25f1829a1c8058b8ac6b2558f0752e2c8fe00255c593d719457700dcd73977022016c25fd9ec55134fd6dc5ec5afadc550e3350c40b612f69837f442bc4e225ae2:922c64590222798bb761d5b6d8e72950