🔧 Flat-price WordPress fixes from $69 — start with a free diagnosis, no card. Get a free diagnosis →

Security

How WordPress Sites Get Hacked: The Usual Entry Points

Nov 22, 2026 · 10 min read · By the Mend engineering team

Most WordPress hacks start with a weak login, an outdated plugin or theme, stolen hosting credentials, or a vulnerable admin account. The safest prevention is simple: keep software updated, use strong unique passwords with 2FA, limit access, and back up your site so you can recover quickly if something slips through.

If you are worried your site has already been touched, start by isolating the problem, checking for suspicious admin users, and reviewing recent file and plugin changes. If that sounds like too much to handle safely, a professional cleanup from our safe hacked-site cleanup guide or a free diagnosis can help you move fast without making the damage worse.

What “getting hacked” usually looks like

WordPress hacks do not always announce themselves with a broken homepage. In many cases, the site still loads normally while malicious code runs quietly in the background. Other times the visible symptom is obvious: a defaced homepage, spam links in the footer, redirect loops, login problems, or strange popups that were never part of your site.

Common warning signs include:

  • New admin users you did not create
  • Plugins or themes you do not recognize
  • Unexpected redirects, especially on mobile or from search results
  • Spammy pages, posts, or comments appearing on the site
  • Hosting alerts about malware or suspicious file activity
  • Your site being flagged by browsers or search engines
  • Sudden spikes in CPU, bandwidth, or outbound email

Some infections are noisy, but the most dangerous ones are subtle. Attackers often want persistence, not drama. They may create a hidden admin account, modify core files, inject code into a theme, or place a backdoor somewhere easy to miss during a routine cleanup.

The most common ways WordPress sites get hacked

WordPress itself is not unusually fragile. Most compromises happen because one layer around it is weak: an outdated plugin, a reused password, a poorly secured host account, or a site owner who gave too much access to the wrong person.

1. Outdated plugins and themes

This is one of the most common entry points. A plugin or theme with a known vulnerability can let an attacker upload files, run code, or take over parts of the site. The risk is highest when updates are delayed for weeks or months, especially on plugins that handle forms, file uploads, page building, membership, ecommerce, or user registration.

What helps:

  • Update plugins and themes promptly after checking compatibility
  • Remove anything unused instead of leaving it disabled
  • Prefer well-maintained software from reputable developers

2. Weak or reused passwords

If an attacker guesses or steals your password, they do not need a technical exploit. Reused passwords are especially risky because one unrelated breach can expose your WordPress login, hosting panel, email, or domain account.

What helps:

  • Use unique passwords for WordPress, email, hosting, and domain registrar accounts
  • Turn on two-factor authentication for every account that supports it
  • Replace shared or old team passwords with named user accounts

3. Phishing and stolen admin credentials

Many site owners are not “hacked” in the dramatic sense. They are tricked into handing over login details to a fake support page, fake plugin notice, or convincing email. Once an attacker has access to your admin email or hosting account, they can reset passwords and move deeper into the stack.

What helps:

  • Train everyone with access to spot suspicious emails and login pages
  • Bookmark the real admin and hosting URLs instead of following links in email
  • Protect the email inbox tied to WordPress password resets with 2FA

4. Vulnerable file upload forms

Any form that accepts files can become an entry point if it is not configured correctly. Attackers look for weak validation that lets them upload executable files or hide malware inside something that looks harmless.

What helps:

  • Limit file types to only what you truly need
  • Store uploads outside executable directories when possible
  • Keep form and membership plugins updated

5. Poorly secured hosting or server accounts

WordPress security does not end at the dashboard. If someone gets into your hosting panel, FTP account, SSH access, backup storage, or email attached to the server, they may be able to change files or recover access even after you reset your WordPress password.

What helps:

  • Use least-privilege access on hosting accounts
  • Disable old FTP users and shared credentials
  • Protect hosting logins with strong passwords and 2FA where available

6. Infected computers or browser sessions

If an administrator’s laptop or browser is compromised, WordPress credentials can be stolen from saved passwords, session cookies, or clipboard data. In practice, this means a site can be exposed even when the server itself was originally clean.

What helps:

  • Keep admin devices updated
  • Log out of shared computers after every session
  • Use password managers instead of browser-saved passwords where possible

7. Excessive access and old accounts

The more people who can log in, the more chances there are for an account to be misused, forgotten, or compromised. Old agency accounts, temporary contractor users, and test accounts are common weak points because they often outlive the work they were created for.

What helps:

  • Review users regularly and delete accounts you no longer need
  • Assign the lowest role that still lets someone do their job
  • Audit admin accounts after staff changes or project handoffs

Why some sites get hit again after cleanup

A site can be cleaned and still get reinfected if the original entry point remains open. That usually means one of three things: a vulnerable plugin is still installed, a stolen password is still valid, or a backdoor was missed during the first cleanup. In some cases, the attacker also left access in the hosting account or email inbox, which lets them come back even after WordPress itself is fixed.

This is why cleanup should always include both removal and hardening. Removing malicious files is not enough if the account structure still lets someone get back in.

The safest prevention checklist

If you want to reduce your risk without overcomplicating things, focus on the controls that block the most common attack paths. These are the highest-value steps for most WordPress sites.

  1. Back up first. Keep a recent backup that you have actually tested restoring. If anything goes wrong during cleanup or an update, this is what saves you.
  2. Update WordPress, plugins, and themes regularly. Security fixes only help if they are installed.
  3. Remove anything you do not use. Every extra plugin or theme adds potential risk.
  4. Use strong, unique passwords everywhere. WordPress, hosting, email, and domain accounts all matter.
  5. Turn on two-factor authentication. It blocks a lot of password-only attacks.
  6. Limit admin access. Give people the smallest role that works.
  7. Keep an eye on user accounts. Especially after contractors, agencies, or staff changes.
  8. Choose a host that protects the platform. Good hosting can reduce exposure and improve recovery options, though security features vary by provider.
  9. Review logs and alerts. File changes, login attempts, and outbound email spikes can catch problems early.
  10. Secure your email accounts. If email is compromised, WordPress resets are easy to abuse.

What to do if you think your site is already compromised

Move carefully. A rushed cleanup can delete evidence, break the site, or miss the real entry point. If the site is still live, start with containment and basic triage.

  1. Change passwords for WordPress admin, hosting, email, and any related accounts.
  2. Review WordPress users and remove anything suspicious.
  3. Check recent file changes in plugins, themes, uploads, and the root directory.
  4. Put the site into maintenance mode if malware is actively redirecting visitors or sending spam.
  5. Scan from multiple angles: WordPress dashboard, hosting file manager, server logs, and external security tools.
  6. Restore from a known-clean backup only if you are sure the backup predates the compromise.

If you are seeing a critical error, a redirect, or strange admin behavior, it may overlap with other issues such as plugin conflicts or a hacked admin session. Our guides on WordPress critical errors and locked-out admin access can help you sort out what is security-related and what is not.

If the site is business-critical, the safest option is usually to stop guessing and have it checked properly. Mend’s senior engineers work on a backup-first workflow, identify the root cause, and return a plain-English report of exactly what changed. If you need fast help, you can start with a free diagnosis or go straight to Emergency Rescue for urgent cases.

How to make future hacks less likely

Good security is mostly boring consistency. The goal is not to make your site impossible to attack; it is to make the common attacks fail quickly and cheaply. That means fewer stale plugins, fewer shared credentials, fewer unused accounts, and better recovery habits.

A practical monthly routine is enough for many sites: review updates, check users, verify backups, confirm 2FA is still enabled, and scan for unexpected changes. If you run WooCommerce, membership, or multi-user publishing, increase that cadence because those sites usually have more login and upload activity.

And if you are already short on time, do not treat security as a separate project you will “get to later.” The best time to secure a WordPress site is before an attacker finds the weak link. The second-best time is right after you notice something is off.


For a deeper cleanup workflow, see WordPress Site Hacked? Here's How to Clean It Up — Safely. If you want a broader prevention routine, What a Good WordPress Maintenance Routine Looks Like is the best next read.

Frequently asked questions

How do I know whether my WordPress site was hacked or just broken?

Hacking often shows up as unknown users, redirects, spam, strange files, or security alerts. A normal plugin conflict usually breaks functionality without creating new accounts or malicious code.

What should I change first after a suspected hack?

Change passwords for WordPress, hosting, email, and domain registrar accounts first. Then review users, remove anything suspicious, and check for recent file changes.

Can deleting a bad plugin fix a hacked site?

Not by itself. If the attacker already created a backdoor or stole credentials, they can come back even after the plugin is removed.

What is the single best way to prevent WordPress hacks?

There is no single best step, but strong unique passwords with 2FA plus timely updates prevent a large share of common attacks. Regular backups are what make recovery possible if prevention fails.