stupoolie wrote:
John, you should be able to do an SQL style find and replace for that string. Thats if its the same throughout your db.
Hate MySQL injection attacks, vain of my job. Just out of curiousity what did you build the site in, framework wise etc?
Cheers Stu, but it's ok, I know what I'm doing on this. I'm just kicking myself for leaving anything even remotely resembling a backdoor; avoiding injection attacks is not difficult. Clearing up after it is a bit of a non-starter. I could easily write a script to remove any trace of the injection markup, but that horse has gone. It's not the rogue content that's the problem, it's the loss of the content that it has replaced. You're talking any reasonably long varchar field in over 16000+ people and 4000+ matches, all such content lost. But I'm relaxed about it. As I said, I have recent backups.
The most annoying thing is that I now have to spend a decent amount of time cleaning up the existing (old) site, when I'm around 60% of the way towards writing a whole new one from the bottom up. I've written the replacement in ASP.NET with some additional custom controls. I've also written it in such a way as to render SQL Injection attacks essentially impossible. I wish I could say the same about the current site, which unfortunately was written in classic ASP using, for 90% of the code at least, nothing more sophisticated than Notepad.
I don't use MySQL. The site has always been based around MS SQL Server, and the new site will be no different in that respect. All access to/from the db is via stored procedures. Had the same been true for all (rather than most) of the db access in the current site, I wouldn't have had any problems. I've just been tripped up by some old, derelict, should have been condemned, code.
Mr TPP, just for the benefit of those of us who don't share your technical knowledge, can you put the above into laymans terms please?
Ta.