Welcome Guest, Not a member yet? Register   Sign In
Preventing XSS injection in querystring
#1

I have a CI3 site that is vulnerable to XSS injection via the querysting:

https://thesite.com/search?q=x'><svG onLoad=alert(document.domain)>

I have all inputs going through
Code:
$this->input->get('q', true)
so it's protected at the server end but still runs when the page is loaded with the malicious querystring.

How can the execution of the javascript be prevented?
Reply


Messages In This Thread
Preventing XSS injection in querystring - by jhob - 12-19-2017, 06:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB