Script injection with search
-
I got a message that my search function of WordPress (probably old theme?) can be used to inject scripts or something if you put some after the ?s= at the url… The example given was
?s=<svG%20onLoad=prompt(/css/)>
When I try this on my website, a popup window appears with “/css/” prompt and “Ok” and “Cancel”. I have no idea if this is something dangerous (or could be) or not.. How can I fix this? I assume, the “searchform.php” has to be edited? My theme is an old theme not updated in a while. Is that the reason? Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Script injection with search’ is closed to new replies.