Welcome Guest, Not a member yet? Register   Sign In
Security issue - Cross Site scripting?
#1

[eluser]huzzi[/eluser]
Hi Guys!

I'm running a website on CI 1.7.2, i've been told by a security expert that my site is vulnerable to scross site script as explained below.


Quote:For the issue relating to More Comersus Cart, whether or not you are
running the program, the following page appears to be vulnerable to
Cross Site scripting....
https://www.domain.com/scripts/backoffic....asp?error=
You can verify this yourself by going to the following domain....
https://www.domain.com/scripts/backoffic...T>alert('XSS')</SCRIPT>
Now, if you look at the source code, you will see that the script has
made it into that source code and it is not properly sanitized.

this is what's added to the source code.

Code:
<link rel="canonical" href="http://www.domain.com/scripts/backofficeplus/comersus_backoffice_supportError.asp?error=[removed]alert('XSS')<.html" />

[REMOVED]=SCRIPT

My question is, is this something i should be concerned about? If so, what's the solution?

Many thanks in advance.

Huzzi
#2

[eluser]WanWizard[/eluser]
YES!

Never trust user input, no matter where it comes from. So that includes GET variables. XSS clean them.
#3

[eluser]huzzi[/eluser]
[quote author="WanWizard" date="1299806013"]YES!

Never trust user input, no matter where it comes from. So that includes GET variables. XSS clean them.[/quote]

Thanks for your reply, on my config file I have $config['global_xss_filtering'] = TRUE; that should do the job isn't it?


Thanks again.
#4

[eluser]vikascoollives[/eluser]
yes it will .
#5

[eluser]WanWizard[/eluser]
It should.

But it depends on how you access your URL variables. And which CI version you use.




Theme © iAndrew 2016 - Forum software by © MyBB