[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HTML Injection Vuln in nssboard
Nssboard, formerly Simple PHP forum, is vulnerable to HTML injection including scripts (possible XSS) in two ways:
1. If BBcode is disabled, HTML tags are no longer stripped, allowing XSS attacks, etc.
2. Profile information (user, email, Real Name) is not filtered. For example a user could use something like "<script>alert(document.cookie)</script> " as a Real name and the script would execute everytime someone views that users profile or the members page.
However the number of characters allowed in Real name is limited so it's unlikely too much damage could be done.
If XSS is allowed, it could allow for Session Hijacking.
I found this bug using version 6.1 of NSSboard (the latest as of this writing), and it's likely that all earlier versions are also affected, but I didn't test them. I am using Debian Linux and lighttpd to host it.
The fix would be to make sure HTML tags are filtered regardless of BBcode being enabled, and to filter user profile input data.
If you are using this software, I would recommend having BBcode enabled even if you don't need it.
Credit: Me (Casey Fitzpatrick) aka: kcghost, kcblah