Having real trouble understanding this. I'm explaining and giving examples of cross site scripting but I'm being quite general I think. I have to try and relate it as much as possible to PHP. Now, you write PHP and the browser effectively converts this to HTML.
If I were to put <script>alert("hacked")</script> into a search form, I might, if the web application doesn't filter for malicious code, get an alert box that says "hacked".
Now, as far as I'm aware this is a persistent xss attack. But how would this affect the PHP? I know it's the browser that initiates the code. Just a little bit lost I think.
A point in the right direction would be greatly appreciated. And please forgive me, coding is not really my thing.
And hopefully this is ok, if not please remove!
If I were to put <script>alert("hacked")</script> into a search form, I might, if the web application doesn't filter for malicious code, get an alert box that says "hacked".
Now, as far as I'm aware this is a persistent xss attack. But how would this affect the PHP? I know it's the browser that initiates the code. Just a little bit lost I think.
A point in the right direction would be greatly appreciated. And please forgive me, coding is not really my thing.
And hopefully this is ok, if not please remove!