I am a JAMWiki user and recently had my installation of JAMWiki scanned with the McAfeeSecure vulnerability scanner (https://www.mcafeesecure.com).
McAfeeSecure identified a Cross Site Scripting vulnerability in JAMWiki 1.0.6. I have attached a screenshot of the XSS demonstration results.
I would like to know if this issue can/will be fixed in the JAMWiki software.
The remote web application appears to be vulnerable to cross-site scripting (XSS). The cross-site scripting attack is one of the most common, yet overlooked, security problems facing web developers today. A web site is vulnerable if it displays user-submitted content without sanitizing user input. The target of cross-site scripting attacks is not the server itself, but the users of the server. By finding a page that does not properly sanitize user input the attacker submits client-side code to the server that will then be rendered by the client. It is important to note that websites that use SSL are just as vulnerable as websites that do not encrypt browser sessions. The damage caused by such an attack can range from stealing session and cookie data from your customers to loading a virus payload onto their computer via browser.
OWASP's Cheat Sheet on XSS prevention:
I see that you use the Spring framework. Here is an article of interest that may help you prevent XSS as well:
General Solution from McAfeeSecure:
When accepting user input ensure that you are HTML encoding potentially malicious characters if you ever display the data back to the client.
Ensure that parameters and user input are sanitized by doing the following:
Remove < input and replace with <
Remove > input and replace with >
Remove ' input and replace with '
Remove " input and replace with "
Remove ) input and replace with )
Remove ( input and replace with (
The demonstration of the vulnerability from McAfeeSecure:
Read Timeout 10000
Body text=>"></title></iframe></script></form></td></tr><br><iFraMe src