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