id: canon-c3325-default-login

info:
  name: Canon R-ADV C3325 - Default-Login
  author: ritikchaddha
  severity: high
  reference:
    - https://oip.manual.canon/USRMA-0618-zz-CS-enLN/contents/1T0002902253.html#:~:text=The%20default%20user%20name%20for,in%20order%20to%20increase%20security.
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"c3325"
  tags: canon,c3325,default-login,misconfig,vuln

variables:
  username: "Administrator"
  password: "7654321"

http:
  - raw:
      - |
        POST /login HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        uri=%2F&user_type_generic=true&deptid={{username}}&password={{password}}

    host-redirects: true
    max-redirects: 2
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "writeln('Log Out"
          - "Remote UI : Portal"
        condition: and

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