Records
Database security
This package looks at where the records live: who can connect, whether the connection is encrypted, how queries are built, and whether a backup can actually be restored.
Send a messageWho this is for
It is for a business whose site or app stores customers, bookings, payments, or staff records. If the site is only public pages and does not keep accounts, this package is usually the wrong one.
Who should worry
- The database accepts connections from the open internet.
- One shared password is used by the app, a freelancer, and a laptop.
- Backups exist, and nobody has restored one.
- Customer records are kept with no rule for how long.
What the work includes
- A check that the database is not reachable from the public internet.
- An encrypted connection, and accounts that can do only the job they have.
- A review of how queries are built, including raw SQL next to an ORM.
- A backup and a restore check, not only a screenshot of a backup schedule.
- A look at where personal data sits and what the app writes into logs.
- A written list of access changes and of anything the database host still controls.
50 questions owners ask
The list covers websites, applications, and databases. This page starts with the questions for this package.
Database security
- What is database security?
- Who can connect to the records, whether that connection is private and encrypted, how queries are built, and whether you can restore a backup. It is not a promise that the data can never leak.
- What is SQL injection?
- User input is glued into a query, so the database runs the attacker’s command. A parameter, not string pasting, is the ordinary fix. An ORM helps only when nobody bypasses it with raw SQL built the same way.
- Should the database accept connections from the internet?
- No, unless a specific tool must reach it and that path is locked to known addresses. The application server should be the one that connects. A database with a public port is scanned.
- What is encryption in transit versus at rest?
- In transit means the wire between the app and the database is encrypted. At rest means the disk is encrypted if the server is stolen. One does not replace the other, and neither fixes a shared password.
- Why do backups fail when you need them?
- The job was turned on and never restored. The backup is on the same machine as the database. Or the password to the backup left with a former vendor. A backup you have not restored is a hope.
- Who should hold the database password?
- The application, in a secret store, and the smallest number of people who must administer it. Not a spreadsheet, not a chat thread, and not one password shared with every freelancer who ever touched the project.
- What happens if a connection string leaks?
- Whoever has it can try to connect as the app. If the database is public, they may not even need your server. Rotate the password, and close the network path.
- How should personal data sit in the database?
- Only the fields the product needs, not a copy of every form ever submitted. Passwords must be hashed, not stored as text. Card numbers do not belong in your tables if a payment company already holds them.
- Can ransomware reach the backups?
- Yes, if the backup sits on the same server with the same login. A copy that the app server cannot delete is the point of a backup. We check where it lives. We do not sell insurance.
- Does an ORM prevent injection?
- It prevents the queries it builds. A raw query that pastes a search box into SQL is still injection. We read those spots. We do not assume the framework name is the control.
- Who should worry about the database?
- Anyone storing customers, guests, payments, or staff records. If losing or leaking that list would matter, this package applies. A brochure site with no stored accounts usually does not.
- What is least privilege?
- The app’s database user can read and write the tables it needs, and cannot drop the server or read another customer’s database on the same host. An admin account is separate and rarely used.
- How long should customer records be kept?
- As long as you have a reason: a booking, a legal duty, or an open invoice. Keeping every form forever increases what a leak contains. We will not invent your retention law. We will show where the old rows are.
- What is a restore test?
- Taking a backup and loading it somewhere that is not production, then checking that the records are there. A green check on a schedule is not that test.
- Are databases on shared hosting riskier?
- They often share a machine and a control panel with other sites. A weak neighbor or a shared admin can matter. The risk is the access, not the word “shared.” We look at who else can open the panel.
- What will a database review not promise?
- It will not promise that a breach is impossible, and it will not replace your legal duties around personal data. It reports the access we can see and the fixes inside that access.
Website security
- What does website security cover?
- The public site: the certificate, the headers, the forms, the admin door, the plugins, and the host. It is not the same job as reviewing a custom login system or the database.
- If the site has HTTPS, is it secure?
- HTTPS stops someone on the network from reading the page in transit. It does not stop a stolen plugin, an open admin, or a form that accepts anything.
- What do security headers do?
- They tell the browser what the page is allowed to load and whether it may be framed by another site. They reduce a class of attacks. They do not replace updates.
- What is cross-site scripting?
- It is an attacker’s script running inside your site, often because a comment, a search box, or a page builder prints input as HTML. Visitors then trust that script because it comes from your domain.
- How do bots abuse a contact form?
- They submit it automatically, sometimes from many addresses, and fill every field they can see. A hidden field and a short wait stop the simple ones. They do not stop a person who is paid to type.
- Should the admin address be easy to find?
- Hiding /wp-admin or /admin is not protection. The account still needs a strong password, a second factor when the tool allows it, and no leftover logins from old vendors.
- What is a content security policy?
- It is a header that lists which scripts and frames the page may load. A strict policy blocks many injected scripts. A policy copied from a blog and then broken by the live site does nothing useful.
- Are analytics and chat widgets a risk?
- They run code from another company inside your pages. If that company is compromised, or if you leave an old tag in place, their script can read the page. Keep the ones you use and remove the rest.
- What is clickjacking?
- Another site frames yours and tricks a visitor into clicking a button they cannot see, such as a payment or a permission. A frame header tells the browser not to allow that.
- How do old plugins get a site taken over?
- Attackers scan for versions with a published hole. One outdated form, slider, or SEO plugin is enough to write files or create an admin user. The brand of the site builder matters less than the age of the pieces.
- Is WordPress itself unsafe?
- WordPress is a common target because it is common, not because every install is broken. An updated core with few plugins and a locked admin is a normal website. A pile of abandoned plugins is the usual problem.
- What is mixed content?
- The page is HTTPS, and an image, script, or form still loads over HTTP. Browsers block some of it and warn on the rest. It usually comes from an old media URL or a plugin setting.
- When is a file upload dangerous?
- When the site accepts a file from the public and then serves it back as a page or a script. A photo of a project is fine if the server stores it as an image and does not execute it.
- What is a denial-of-service attack on a website?
- A flood of traffic that makes the site slow or unreachable. The host or a network service absorbs most of that. A code review does not stop a flood, and we will not pretend that it does.
- Who should worry about the public site?
- Anyone who would lose inquiries, bookings, or reputation if the site showed spam, a warning, or someone else’s content. A site that is only a PDF on a file host has less to review.
- What will a website review not do?
- It will not certify that the site cannot be broken. It will not replace the host’s network protection, and it will not review a custom application or the database unless that package is in the quote.
- How often should the site be updated?
- When the vendor publishes a security fix, not on a calendar you invent. A site with plugins needs someone who applies those fixes. A custom site with few dependencies needs them less often, not never.
- How does spam end up inside a website?
- Through an old plugin, a stolen admin, or a writable folder. The public homepage can look normal while hidden pages sell pills or links. A review looks for those files. Cleaning them is quoted once we see how they got in.
Application security
- What is application security?
- The rules inside the software: who signs in, which records they may open, and which secrets never leave the server. A pretty page can still hand the wrong booking to the wrong person.
- Is a password form enough protection?
- A password proves someone knows a secret. It does not prove they may open every record, and it does not help if the reset email goes to an attacker. Admin accounts should have a second factor when the product allows it.
- What is session hijacking?
- Someone copies the cookie that says you are signed in and uses it as you. HTTPS, a cookie that is not readable by page scripts, and a session that ends on logout are the ordinary controls.
- What is broken access control?
- The screen hides a button, but the address still returns another person’s invoice, booking, or file. Hiding a link is not a permission check. The server has to refuse the request.
- Why are API keys in frontend code a problem?
- Anything shipped to the browser can be read. A key there can spend your account, read your customers, or send mail as you. Keys belong on the server.
- What does CORS control?
- Which other websites may call your API from a browser. Allowing every origin is convenient and too wide if the API uses the visitor’s cookie. CORS is not a substitute for checking who the user is.
- Does a mobile app need a separate review?
- The app is another client of the same server. Hiding a button in the app does not protect the API. We review the calls the app can make. We do not certify the app store listing.
- What is rate limiting for?
- It slows repeated attempts to guess a password, create accounts, or send mail. A limit of five a minute on one server instance is weak if attackers rotate addresses. It is still worth having on login.
- How can a token be misused?
- A token that never expires, that grants admin to every caller, or that is stored where page scripts can read it, is a spare key. Tokens should expire, name the user, and stay out of local storage when a cookie will do.
- When is a second factor worth it?
- On every account that can change the site, read all customers, or move money. It is less urgent on a public page with no account. A second factor does not fix a broken permission check.
- What is a dependency or supply-chain risk?
- The app trusts a package someone else publishes. A poisoned update, or an old package with a known hole, runs with your app. We look at what you actually install. We do not audit the whole internet.
- Who should worry about the application?
- Anyone whose customers or staff sign in, and anyone who would be in trouble if one account could read another account’s bookings, files, or messages. A site with no accounts can skip this package.
- What is privilege escalation?
- A normal user becomes an admin, or a staff user reaches a control they were not given, because the server trusts a field the browser sent. The role has to be decided on the server.
- Why are booking and payment flows sensitive?
- They tie a person to money, dates, and sometimes a card token. A missing check can change a price, reveal a guest, or mark an unpaid booking as paid. We review the checks. We do not store card numbers.
- What should the app log, and what should it not?
- Log sign-in failures, permission denials, and admin changes. Do not log passwords, card numbers, session cookies, or full customer records. A log that contains the secret is another copy of the secret.
- Can an AI feature expose customer data?
- Yes, if the prompt includes other customers’ records, or if the model’s reply is shown without the same permission check as the rest of the app. The model is not a security boundary.
