1) inside /var/www/wordpress/wp-settings.php search for set_magic_quotes_runtime and make sure that it's called like this:
set_magic_quotes_runtime( 0 );
2) inside the same file, search and comment out this line:
// Add magic quotes and set up $_REQUEST ( $_GET + $_POST ) // wp_magic_quotes(); //<-- this has to be commented
3) disable the PHP's magic_quotes_gpc like described here
p.s. don't do these changes on production WordPress site(s) as it will just open up the door(s) for the new potential attacksp.p.s. why disclosing vulnerabilities which have a note "magic quotes has to be turned off" is as important as others? Along with the fact that lots of web admins willingly decide to turn it off, magic_quotes mechanism is considered as deprecated from PHP 5.3.0.. That means that solely relying on that automatic security mechanism (especially inside WordPress) from preventing SQL injection vulnerabilities (especially in future) should be considered as a big no no.

7 comments:
I don't even know how I ended up here, but I thought this post was good. I don't know who you
are but certainly you're going to a famous blogger if you aren't already ;) Cheers!
my blog; www.addwebsiteurl.info
I'm curious to find out what blog system you have been utilizing? I'm experiencing some minor security problems with my latest website and I would like to find
something more risk-free. Do you have any recommendations?
Review my page :: naturalanxietyremediestips.com
I got this web page from my pal who shared with me about this
web page and at the moment this time I am browsing this web site and reading very informative articles or reviews here.
My site ... Eleven2 Testimonies
Just desire to say your article is as surprising. The clarity for your put
up is just great and i can think you are an expert in this subject.
Well along with your permission let me to clutch your RSS feed to stay up to date
with coming near near post. Thanks 1,000,000 and please carry on the gratifying work.
Here is my website :: vexxhost evaluates
Hmm it looks like your blog ate my first comment
(it was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog.
I as well am an aspiring blog blogger but I'm still new to everything. Do you have any suggestions for novice blog writers? I'd genuinely appreciate it.
my blog post - vexxhost testimonies
my web site - vexxhost ratings
I pay a quick visit each day a few blogs and websites to read articles or reviews, except this web
site offers feature based content.
my web page ... hostgator Ratings
Hello! This is kind of off topic but I need some help from an established blog.
Is it hard to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking
about setting up my own but I'm not sure where to begin. Do you have any tips or suggestions? Many thanks
My website ... cloud servers Vs dedicated servers
Post a Comment