Title: WordPress Hacked &#8211; SQL reinfections
Last modified: May 4, 2020

---

# WordPress Hacked – SQL reinfections

 *  Resolved [williambella](https://wordpress.org/support/users/williambella/)
 * (@williambella)
 * [6 years ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/)
 * Hey everyone, I hope someone can help or give advice.
 * Site info:
    WordPress: 5.4.1 PHP 7.3.17
 * All plugins and themes are up to date.
 * Recently the site got hacked I’ve installed different security plugins Itheme
   Security, WordFence Security, and Sucuri before it got hacked. We recently revert
   the website back to the previous state, however once a week the hacker will change
   everything again. After reverting the site we changed all login, DB, and FTP 
   details but that didn’t help.
 * All the entries – post/page/image description – were corrupted with this script:
 * **_[ Deleted, do not post malware code on this site ]_**
 * Can someone advise what to do? Or have a solution to prevent SQL injections?
    -  This topic was modified 6 years ago by [williambella](https://wordpress.org/support/users/williambella/).
    -  This topic was modified 6 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
    -  This topic was modified 6 years ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwordpress-hacked-sql-reinfections%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [6 years ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/#post-12779889)
 * Moved to Fixing WordPress, this is not an Everything else WordPress topic.
 * Unless it’s spam, abuse or something broken in the forums please do not report
   topics again.
 * It is not a means to get faster support, it only gets forum moderators attention
   and no one else.
 * Please remain calm and give this a good read.
 * [https://wordpress.org/support/article/faq-my-site-was-hacked/](https://wordpress.org/support/article/faq-my-site-was-hacked/)
 * When you have successfully deloused your site then consider giving this a read
   too.
 * [https://wordpress.org/support/article/hardening-wordpress/](https://wordpress.org/support/article/hardening-wordpress/)
 *  Thread Starter [williambella](https://wordpress.org/support/users/williambella/)
 * (@williambella)
 * [6 years ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/#post-12819600)
 * Hi Jan,
 * I did follow the instruction to hardening WordPress and installed required plugins
   but it didn’t work, still being hacked once a week.
 *  [phasethreegoods](https://wordpress.org/support/users/phasethreegoods/)
 * (@phasethreegoods)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/#post-12877419)
 * Hi [@williambella](https://wordpress.org/support/users/williambella/)
 * Hope you managed to resolve this since you posted last week. If not, maybe take
   a fresh look at [this tutorial](https://www.phasethreegoods.co.uk/blog/wordpress-malware-removal-guide/).
   It’s a step-by-step approach to ‘delousing’ that scrubs the site from top to 
   bottom and then some.
 * Take special note of the followup questions at the bottom of the article. If 
   you follow this guide thoroughly and find that the hacking persists, it might
   be worth reexamining your theme setup, plugins or hosting environment.
 * Good luck!
 *  Thread Starter [williambella](https://wordpress.org/support/users/williambella/)
 * (@williambella)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/#post-13088756)
 * Hi, Thank you for your reply.
 * Yes, we’ve fixed the issue, I’ve changed the website server which solved the 
   problem. The main issue is probably something to do with our old hosting provider.
 *  [phasethreegoods](https://wordpress.org/support/users/phasethreegoods/)
 * (@phasethreegoods)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/#post-13088864)
 * Good to hear [@williambella](https://wordpress.org/support/users/williambella/)!
   Don’t suppose you could disclose the old hosting provider? It’s useful to know
   for future troubleshooting/advising clients!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘WordPress Hacked – SQL reinfections’ is closed to new replies.

## Tags

 * [hacking](https://wordpress.org/support/topic-tag/hacking/)
 * [sql injections](https://wordpress.org/support/topic-tag/sql-injections/)
 * [wordpress hack](https://wordpress.org/support/topic-tag/wordpress-hack/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 3 participants
 * Last reply from: [phasethreegoods](https://wordpress.org/support/users/phasethreegoods/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/wordpress-hacked-sql-reinfections/#post-13088864)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
