jgd1234567
Programmer
Hi, i've always taken security for granted in my websites but i am currently in the process of building a big website where security is of major importance. I understand most of the server side security concerns such as sql injection but with javascript (and ajax) i get a little bit lost. From my understanding there are a couple areas which particularly concern me.
1. What can a user do if they manage to inject javascript into a page on the site? I read that XMLHttpRequest has its own built in security (can only call pages on the site it resides) but if a user can inject javascript into my site then surely this could be a security concern.
2. What are the security concerns with iframes (pages on external site)? Do i get the same problems as in point 1?
I know i should probably html encode my user input but i am just wondering what are the security concerns incase.
1. What can a user do if they manage to inject javascript into a page on the site? I read that XMLHttpRequest has its own built in security (can only call pages on the site it resides) but if a user can inject javascript into my site then surely this could be a security concern.
2. What are the security concerns with iframes (pages on external site)? Do i get the same problems as in point 1?
I know i should probably html encode my user input but i am just wondering what are the security concerns incase.