# A forgotten database backup sat on the server and anyone could download it without logging in

> A database backup anyone could download, Google tools running before consent and 9 seconds on mobile. What we found on a client's site and what we fixed.

Page address: https://sitevidence.com/en/case-studies/database-backup-on-server/

## In short

When rebuilding the site, we started by reviewing the server and the admin panel. The server held a forgotten database backup from earlier work on the site, and anyone who knew its address could download it without logging in. On top of that, the security plugin was switched off, Google tools ran before cookie consent, and on a phone the main content appeared after 9 seconds. We removed the forgotten files and rebuilt the site, so today the main content appears on a phone after about 2 seconds, and Google tools start only after the visitor agrees.

## Conditions we worked in

We found the problems during a site rebuild, with full access to the WordPress admin panel and to the files on the server. We measured the site and ran a copy of it on our own side. On the copy we reviewed the files, plugins and settings before changing anything on the live site. We then published the new version and measured the live site again.

## What we found

We list the problems from the most urgent. We do not give file names or addresses, because they would hint at where to look for similar mistakes.

### A database backup that could be downloaded without logging in

**What it was.** In the site directory, the part of the server that is visible from the internet, there was an old database backup. It was left over from earlier work on the site. Anyone who knew its address could download it without logging in. Next to it were a zipped copy of the whole site, a script for packing files and other working files.

**What could have happened.** The backup contained the login details of two accounts for the site's admin panel. The passwords are stored in a form that cannot be read directly, but a weak password can be guessed from such a backup. Whoever guessed a password could log in to the panel and take over the site.

**How urgent.** Critical: fix immediately. In the work plan we marked it as urgent.

**Evidence.** The server returned the database backup without a login (response 200, meaning "the file is available"). In a later check, the old forgotten files returned error 404, meaning "no such file".

### Google tools before cookie consent

**What it was.** Before the visitor clicked anything, the site connected their browser to four Google services: fonts, a tag manager, ads and the form's spam protection. The Google ad code also loaded twice.

**What could have happened.** Analytics and advertising tools may start only after the visitor agrees (Article 399 of the Electronic Communications Law (Prawo komunikacji elektronicznej), GDPR). Here, every visitor's IP address reached Google before that person had decided on consent.

**How urgent.** Critical: fix immediately.

**Evidence.** The list of connections made before consent, taken from the measurement, and a browser test on a copy of the site.

### A switched-off security plugin and a file manager

**What it was.** The plugin list included a security plugin, but it was switched off. Next to it was a file manager, a plugin for browsing and changing files on the server straight from the site's panel. There were also several unnecessary add-ons, including two plugins for enlarging photos and a plugin for a maintenance notice.

**What could have happened.** A switched-off security plugin protects nothing, yet it gives the impression that the site is secured. A file manager shortens the path from a stolen password to swapping the site's code. Every unnecessary plugin is extra code that has to be updated.

**How urgent.** High: fix within 2 weeks.

**Evidence.** The site's plugin list, recorded in the scope of work.

### A slow site on mobile

**What it was.** On a phone, the main content of the first screen appeared after 9.0 s, and the home page weighed 3.5 MB. The PageSpeed speed score was 58 out of 100 on mobile and 87 on desktop.

**What could have happened.** A time of up to 2.5 s is considered good. Speed affects the position in Google and whether anyone waits for the page to load at all.

**How urgent.** High: fix within 2 weeks.

**Evidence.** A measurement recorded in the scope of work.

## What we did

First we removed from the server whatever risked a site takeover. Then we rebuilt the site on a copy and published the new version.

### Login and account security
- We changed the passwords of both accounts found in the database backup, so a password guessed from that backup no longer opens the panel.
- We changed the server access details, so nobody can get into the server with the old details any more.
- The new theme limits the number of login attempts, so nobody can keep guessing a password endlessly.
- We turned off the file editor in the panel, so even a stolen password will not let anyone change the site's code from a browser.
- We turned off the old remote publishing interface (XML-RPC), because it is an extra route for guessing passwords.
- We hid the list of accounts from outside view, so a stranger cannot check which logins work in the panel.

### Plugins and updates
- On the copy of the site we removed unnecessary plugins and the leftovers of old ones, because every unnecessary plugin is extra code to look after.

### Order on the server and backups
- We removed from the server the database backup, the zipped copy of the site, the file-packing script and the other forgotten working files, so nobody can download them from the internet.
- A later check from outside confirmed that the addresses of those files return error 404.
- On the copy of the site we deleted 75 MB of unneeded files, so fewer things remain on the server to keep an eye on.
- On the copy of the site we removed the old mail-sending settings that went through an external account, so email from the site no longer passes through someone else's account.
- We set up backups of the site, so that it can be restored after a failure or an attack.

### Privacy and cookie consent
- We added our own cookie consent window, so the visitor decides whether Google tools may start.
- Google tools load only after consent, so before the click the browser does not send the visitor's IP address to Google.
- We moved the fonts to the site's own server, so the browser does not connect to Google just to download them.
- The form is now protected from spam by a hidden field and an attempt limit instead of a Google service, so the form does not send the visitor's data to Google.

### Site speed
- We prepared a new theme without unnecessary libraries, so the browser downloads fewer scripts.
- Photos are in WebP and AVIF formats and sized to the screen, so they weigh less.
- Photos further down the page load only as you scroll, so the first screen appears faster.

## Result

| What we measured | Before | After | How we measured |
|---|---|---|---|
| Time after which the main content of the first screen is visible on a phone | 9.0 s | 2.04 s | before: measurement from the scope of work; after: Lighthouse 12.8.2 in phone mode, median of 5 measurements |
| Weight of the home page on a phone | 3.5 MB | 346 KB, about 0.35 MB | as above |
| Speed score on a phone (0–100) | 58 | 100 | PageSpeed Insights |
| Google services started before cookie consent | 4 | 0 | before: list of connections before consent from the measurement; after: final rebuild report |
| Database backup and forgotten files | downloadable without logging in | error 404 | check from outside before and after removing the files |

Lighthouse is a Google tool that, in phone mode, simulates a slow 4G network and a weaker processor. PageSpeed Insights takes a similar measurement on Google's servers. The "before" measurement comes from the scope of work and the "after" from Lighthouse, so not all values were measured with the same tool.

## What the client gained

The database backup and the other forgotten files can no longer be downloaded from the server. On a phone the main content appears after about 2 seconds instead of 9, and the home page is about ten times lighter. Google tools start only after the visitor agrees. Logging in to the panel has an attempt limit, and the list of accounts cannot be viewed from outside.

## Which package would catch this today

This story comes from a rebuild with full access, so not everything in it is visible from outside. Website review and Full audit check the site without passwords, and the Full audit covers more subpages. Full audit with access also checks the panel, the files on the server, the backups and the accounts.

| Finding | From which package | Why |
|---|---|---|
| Database backup and zipped copy of the site on the server | Full audit with access | From outside we check only a fixed list of known addresses and do not guess backup file names. |
| Accounts from the database backup and their passwords | Full audit with access | Accounts and permissions are visible only in the panel. |
| Switched-off security plugin, file manager and unnecessary plugins | Full audit with access | The state of plugins is visible only in the panel. |
| Google tools before consent | Website review | The review checks in a browser what the site does before the consent click. The Quick check shows Google fonts loaded before consent and marks Google scripts as "to be verified". |
| Slow, heavy site on mobile | Quick check | The Quick check gives the PageSpeed score and the time to show the main content. The Website review describes the causes. |

The most dangerous finding of this story, the database backup, would today be shown only by the Full audit with access.

## What to ask your contractor

You can ask the company that runs your site these three questions.
1. "Are there any database backups or zipped copies of the site left on the server, and can they be downloaded from the internet?"
2. "Who outside our company has access to the site's panel and the server today? When were those passwords last changed?"
3. "Which plugins are installed, which of them are switched off, and what is each one for?"

## A public case: files from an old site in Google results

This case started with the same mistake as in our story: files from the previous version of a site were left where anyone could download them. When the company Panek SA launched a new site, a folder with files from the previous version was left accessible, and Google's robot indexed it. The files contained personal data, including first and last names, email addresses and home addresses.

The President of the Personal Data Protection Office (UODO) fined the company PLN 1,527,855, and the firm that processed data for it PLN 20,037. The authority found, among other things, that the company did not supervise its subcontractor and did not test its security measures. In May 2025 the Voivodeship Administrative Court in Warsaw dismissed the company's complaint (II SA/Wa 45/25). The company announced a cassation appeal, and the sources we checked do not say whether the judgment is final.

Sources, checked on 16.11.2026: [UODO announcement of 24.07.2025](https://www.uodo.gov.pl/pl/138/3833), [prawo.pl of 23.12.2024](https://www.prawo.pl/biznes/panek-ukarany-za-naruszenie-rodo,530704.html), [prawo.pl of 28.07.2025](https://www.prawo.pl/prawo/wsa-oddala-skarge-panek-1-5-mln-zl-kary-za-naruszenie-rodo,534105.html).

## Client consent

This description is published with the client's consent. We do not give the company's name, because we are describing its security.
