id: iotawatt-app-exposure

info:
  name: IoTaWatt Configuration App Exposure
  author: pussycat0x
  severity: high
  description: An IoTaWatt configuration app was discovered. Unauthenticated access to an IoTaWatt energy monitor could give a malicious attacker the means to upload to any of several third-party energy websites/database.
  reference:
    - https://docs.iotawatt.com/en/master/passConfig.html
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L
    cvss-score: 8.3
    cwe-id: CWE-522
  metadata:
    max-request: 1
    fofa-query: app="IoTaWatt-Configuration-app"
  tags: iot,exposure

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

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<h3>Configure IoTaWatt Device</h3>'
          - '<title>IoTaWatt Configuration app</title>'
        condition: and

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