vendor:
Online Discussion Forum Site
by:
j5oh
4.3
CVSS
MEDIUM
Cross-Site Scripting (XSS)
79
CWE
Product Name: Online Discussion Forum Site
Affected Version From: 1.0
Affected Version To: 1.0
Patch Exists: NO
Related CWE: N/A
CPE: a:sourcecodester:online_discussion_forum_site:1.0
Metasploit:
N/A
Other Scripts:
N/A
Platforms Tested: Windows 10 / Wamp Server
2020
Online Discussion Forum Site 1.0 – XSS in Messaging System
The messaging subsystem in the Online Discussion Forum is vulnerable to XSS in the message body. This will execute when viewing the messages page: http://localhost/Online%20Discussion%20Forum%20Site/messages.php. XSS can be done through the messaging interface, go to http://localhos/Online%20Discussion%20Forum%20Site/messages.php, select 'Send New Message', search for the user to send the message to, click the 'Send Message' button next to the user, and add the javascript in the message body. Alternatively, if you know the user id you can just send the message directly thought the tt parameter of http://localhost/Online%20Discussion%20Forum%20Site/messageH.php.
Mitigation:
Input validation and output encoding should be used to prevent XSS attacks.