How to Restore Admin Access to Joomla After a Hack
Author

JoomLab.

Published Date

20 August 2026

Views

3 119

How to Restore Admin Access to Joomla After a Hack

Losing access to the admin panel is one of the most unpleasant hacking scenarios. The attacker changed the password and you cannot manage the site. The situation is scary but not hopeless. We have restored access to more than 100 sites after hacks and we know for sure: control can be regained in several ways. Let us look at it step by step.

What the Attacker Does First

Having gained access to the admin panel, the attacker usually:

  • Changes the administrator password.
  • Creates additional accounts.
  • Uploads a web shell for permanent access.
  • Changes the site settings.
  • Injects malicious code into the files and the database.

Therefore restoring access is not just changing a password. A full check of the site for malicious code is needed.

Method 1. Restoring via the Database

If you have access to the database via phpMyAdmin or the hosting panel, you can reset the administrator password directly:

  1. Open the wqq43_users table.
  2. Find your account.
  3. Change the password to a new one via an SQL query.

The method works only if you still have access to the database. If the attacker changed those passwords too — you need to restore access to the hosting first.

Method 2. Restoring from a Backup

If there is a clean backup, the task is simplified:

  • Restore the files and the database from the copy.
  • Immediately change the administrator password.
  • Check that the attacker did not leave backdoors.

It is important to use a backup made before the hack. An infected backup will bring the malicious code back. More details — in the Recovery After a Hack service.

What to Check After Restoring Access

Restoring the password is not enough. Check:

  • The user list — whether there are foreign accounts.
  • The configuration.php file — whether the credentials were changed.
  • The site files — whether there are web shells.
  • The database — whether there are malicious records.
  • The site settings — whether the paths and parameters were changed.

If There Is No Access to Anything

Sometimes the attacker changed all the passwords: the admin panel, the hosting and the database. In this case:

  1. Contact the hosting support — they will help restore access to the server.
  2. Confirm the ownership of the site.
  3. After restoring access to the hosting, reset the Joomla password via the database.

This takes time, but it is possible to get the site back.

Prevention for the Future

So as not to lose access again:

  • Enable two-factor authentication.
  • Restrict access to the admin panel by IP.
  • Use complex and unique passwords.
  • Make backups regularly.
  • Watch the user list.

Preventing the loss of access is easier than restoring it. Comprehensive protection — the Joomla Security and Firewall service: we close typical vulnerabilities in 2–3 days, with a 30-day guarantee.

"Losing access is not the end. But regaining control of the site is only the first step. A full check is needed next."

If you have lost access to the admin panel and do not know how to restore it — do not delay. The longer the attacker controls the site, the more damage they can do.