id: pcoweb-unauth

info:
  name: pCOWeb - Unauth
  author: ritikchaddha
  severity: high
  reference:
    - https://docs.librenms.org/Support/Device-Notes/Carel-pCOweb-Devices/#:~:text=Accessing%20the%20pCOWeb%20card,-Log%20on%20to&text=The%20default%20username%20and%20password%20is%20admin%2Ffadmin%20.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"pCOWeb"
  tags: pcoweb,unauth,misconfig,exposure

http:
  - method: GET
    path:
      - "{{BaseURL}}/config/pw_left_bar.html"

    host-redirects: true
    max-redirects: 2
    matchers-condition: and
    matchers:
      - type: word
        part: response
        words:
          - "System is using"
          - "pCOWeb"
          - "Configuration"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a00463044022019f067337b7b3ffc023d5a3837a82c1654485361f6ce902fc40abbeb2e7ff86e02200322783315585edb2d0b1dca64798d395c905f5e1e6300d4ba07aaa9cc9332e9:922c64590222798bb761d5b6d8e72950