Apologies in advance, kinda a noob at this:
I wrote a search function for my site and I've noticed some peculiar searches:
'>"<svg/onload=confirm('search')>
and
'nvOpzp; AND 1=1 OR (<'">iKO)),
from what I gather these are injection attempts. I send my search box contents to the server via an ajax call. The mysql database is then searched via php's prepared mysqli statements. a formatted HTML string is returned to the user. I don't expose any database information (db name, tables, cols, etc) in the javascript.
Is there any chance something malicious was injected?
Is there any way to tell if something was injected? (nothing looks off in my database)
Am I protecting myself enough with prepared statements?