Post and comment forms unsecure?
-
Hello:
My site has been hacked. I’m not an expert on these things, so correct me if I am wrong… it seems that javascript code can be entered into posts and comments which would allow malicious code to be injected into php code on my host using the XSS (cross site scripting) method. This seems to be what happened to me. Anybody can test this by simply entering some code like
<script>alert(“this is a test”)</script>Note: my blog is self hosted and all updates installed. Users must register before posting.
If you put the javascript in a comment, that script is executed even though the comment has not been approved yet – and by that time it is too late. In posts, it seems to only execute after approval.
Is there any way to fix this?
Bill
- The topic ‘Post and comment forms unsecure?’ is closed to new replies.