Cloud & app security

Website Security Audit: How to Audit a Website Step by Step

A website security audit finds the holes attackers would use first. Here is how to run one yourself, using the OWASP Top 10:2025, with tests, tools and a report template.

Cysoro Security TeamPublished · 8 min read
Cloud & app security Website audit Find the holes attackers would use first A01 Access control ......... FAIL A02 Misconfiguration ..... PASS A03 Supply chain ............ FAIL A04 Cryptography .......... PASS 2 critical findings OWASP Top 10:2025Test, rank, fix, re-test
Quick answer

A website security audit is a structured review of a website's code, configuration, certificates, dependencies and access controls, usually against the OWASP Top 10:2025. You map the attack surface, test each risk with two test accounts, check TLS, security headers and dependencies, then rank findings by severity and fix them with due dates.

Key takeaways

  • Audit against the OWASP Top 10:2025, starting with broken access control, misconfiguration and supply chain failures.
  • Use two test accounts, a staging copy and fake data, and only test sites you own or have written permission to test.
  • Turn every finding into a ranked item with severity, evidence and a due date, then re-test after the fix.

Most website breaches are not clever zero-days. They are a forgotten admin page, a dependency with a known flaw, a password hashed the wrong way, or a user who can open another user's data by changing a number in a web address.

What is a website security audit?

A website security audit is a structured review of a website's code, configuration, certificates, dependencies and access controls, usually against the OWASP Top 10:2025. It ends with a ranked list of findings, not a vague feeling that the site is safe.

OWASP, the Open Worldwide Application Security Project, is a nonprofit that publishes free security guidance. Its Top 10 list ranks the most common groups of web application risks, and the 2025 edition is the current one.

An audit is broader than a scan. A scanner finds known patterns; an audit also checks logic, access rules, error handling and processes that only a person can judge.

For a small site, a careful self-audit with free tools is a strong start. For a site that handles payments or sensitive data, follow it with a professional penetration test.

How do you do a security audit of a website?

Work in seven steps: define scope, map the site, test each OWASP category, check TLS and headers, audit dependencies, review logging, then write the report. Do the work on a staging copy with fake data.

Only test what is yours, or what you have written permission to test. Use a test environment with fake data and two test accounts, with different permissions, so you can test access controls safely.

Keep notes as you go: the page, the test, the result, and a screenshot or request log for anything that fails. Good evidence makes fixes faster and re-testing possible.

Seven steps of a website security audit 1Scopewhat is in,what is out 2Mappages, forms,APIs 3TestOWASP Top 10,two accounts 4TLScerts, headers,cookies 5Supplydependencies,secrets 6Logsevents, alerts,backups 7. Report: rank every finding by severity, with evidence and a due dateThen re-test after each fix. An unfixed finding is security debt.
Audit in order, on a staging copy, and keep evidence for every finding. Illustration by Cysoro.

What is the OWASP Top 10:2025?

The OWASP Top 10:2025 is the current edition of the ten most critical web application risks. It adds two new categories, folds server-side request forgery into broken access control, and moves misconfiguration up from fifth place to second.

The ten categories, in order, are: A01 Broken Access Control, A02 Security Misconfiguration, A03 Software Supply Chain Failures, A04 Cryptographic Failures, A05 Injection, A06 Insecure Design, A07 Authentication Failures, A08 Software or Data Integrity Failures, A09 Security Logging and Alerting Failures, and A10 Mishandling of Exceptional Conditions, as listed in Stingrai's OWASP Top 10:2025 guide.

The 2025 edition draws on test data from more than 2.8 million applications. That scale is why auditors use it as a shared checklist: it reflects what actually shows up in real sites, not only what is newsworthy.

OWASP also publishes ASVS 5.0, released in May 2025, as a standard of verifiable requirements in three levels. Use the Top 10 for the audit, and ASVS when you need detailed requirements for a new build.

How do you test broken access control?

Broken access control, A01, is the top risk in the 2025 list. It means a user can reach data or functions outside their permissions, for example by changing an ID in a web address.

Test it with two accounts. Sign in as account A, take B's order or document ID, and call the page or API directly as B's data. Open admin pages while signed out, and while signed in as a normal user. The right answer is a refusal, never the data.

Check that authorization happens on the server, not only by hiding a button in the interface. A hidden link is not a control if the address still works when typed directly.

Also test file uploads and downloads, directory traversal, and cross-site request forgery protections. Deny by default: every route should require a session unless it is explicitly listed as public.

How do you check security misconfiguration?

Misconfiguration, A02, covers insecure defaults, debug screens in production, exposed files, and missing security headers. It moved up to second place in 2025 because it is so common.

Check that debug mode, detailed error pages and directory listings are off. Visit a page that does not exist and a broken address: error pages should not show stack traces, file paths or database messages.

Try to download sensitive files such as /.env or /.git. Check that default accounts are changed or removed, and that cloud storage buckets are not public.

Check security headers with our free security headers checker. Look for Strict-Transport-Security and Content-Security-Policy, and check that cookies use Secure, HttpOnly and SameSite flags.

How do you audit the software supply chain?

Software supply chain failures, A03, is new in 2025. It covers vulnerable, malicious or compromised dependencies, builds and distribution, expanding the old vulnerable-components category.

Keep the dependency lockfile in version control, run a dependency audit in continuous integration, and turn on automated update proposals. Run npm audit or the equivalent for your stack, and fix high-severity items first, as the Liantio OWASP checklist recommends.

Check every new dependency: the exact name, the publisher, and whether it is maintained. A typosquatted package name is a classic supply-chain attack.

Search the code and configuration for hard-coded secrets, API keys and passwords. Use secret scanning in version control, and rotate any credential that was ever committed.

CheckTool or testPass looks like
TLS certificateSSL checkerValid, unexpired, TLS 1.2 or higher, HTTPS redirect
Security headersHeader checkerHSTS and CSP present, no detailed error pages
Dependenciesnpm audit or equivalentNo high or critical known flaws, lockfile committed
Access controlTwo-account test403 or 404 for another user's data and admin pages
LoginManual testRate limiting, lockout, MFA available, secure sessions
BackupsRestore testA backup restores cleanly, on schedule, and is encrypted

What should you check for cryptography and login?

Cryptographic failures, A04, mean missing, weak or misused encryption. Check that TLS is everywhere, HTTP redirects to HTTPS, and HSTS is set. Passwords must be hashed with a slow function such as Argon2id, scrypt or bcrypt, never MD5 or plain SHA-256.

Authentication failures, A07, cover weak sign-in and session handling. Test for rate limiting on login, account lockout after repeated failures, secure session cookies, and a safe password-reset flow that does not leak whether an account exists.

Check that sensitive data is not in web addresses or logs, that encryption keys are rotated on schedule, and that personal data is encrypted at rest in the database.

Offer MFA, and prefer phishing-resistant options such as passkeys or security keys. A text code can be relayed through a fake login page in real time, so it is weaker than a passkey.

How do you test for injection?

Injection, A05, happens when user input is executed as a command, a query or code. The fix is parameterized queries, never string concatenation, and output encoding for anything shown in a page.

Test search boxes, forms and web addresses with ordinary input first, then with characters that break queries, such as a single quote. Watch for database errors, unexpected results, or script content that runs in the browser.

Check that template rendering uses auto-escaping, that OS commands use allowlists rather than user input, and that LDAP and XPath queries use parameterized APIs.

Also check insecure design, A06, and integrity failures, A08. Ask whether rate limits, quotas and validation exist by design, and whether code and data are trusted without checking for tampering, such as unsigned updates or deserialization of untrusted data.

What about logging, alerts and error handling?

Logging and alerting failures, A09, mean attacks are not recorded, or nobody is alerted in time to respond. Record failed logins, permission errors, permission changes and admin actions, and send alerts for unusual patterns.

Mishandling of exceptional conditions, A10, is new in 2025. It covers errors and abnormal states that leak data or fail open, for example a security check that grants access when a service is down.

Test error paths on purpose: submit bad data, cancel a payment mid-flow, and disconnect during a multi-step form. The site should fail safely, with a generic message to the user and a detailed log for your team.

Confirm that logs do not contain passwords, tokens or full card numbers, and that someone actually reviews alerts. A log nobody reads is not a control.

Rank findings before you fix them CriticalExploitable now,data or adminaccess exposedFix: days HighSerious weakness,needs a realattack chainFix: weeks MediumLimited impact,or needs anunlikely setupFix: next release LowHardening orbest practice,low direct riskFix: backlog Severity is about impact and exploitability, not about how clever the bug sounds.
Rank by impact and exploitability, then give every finding a due date. Illustration by Cysoro.

How do you write the audit report?

Start with scope and method: what was tested, what was excluded, and how. Then give a summary by severity, so a busy reader sees the worst findings first.

For each finding, include the category, the affected page or feature, evidence, the impact if exploited, and clear remediation steps. Add a due date and an owner for every item.

Turn every unticked checklist item into security debt, with a severity and a due date, instead of leaving it blank. That habit is what turns an audit into actual fixes.

Share the report with the people who can fix it, and agree on a re-test date. Re-test each fix in the same way you found it, and record the new result.

Check your site's certificate and headers first with our free SSL checker.

Pair the audit with the wider controls in our small business cybersecurity checklist.

What mistakes do people make in a website audit?

The most common mistake is testing only the live site, with real data, and no permission record. Use staging, fake data and written scope, so a test cannot harm real users.

The second mistake is trusting a scanner alone. Scanners are good at known flaws in dependencies and headers, and poor at access control, business logic and design flaws. Manual tests with two accounts catch what scanners miss.

The third mistake is auditing once and filing the report. Sites change every release, so run the relevant sections for every sensitive feature, and a full audit at least once a year.

The fourth mistake is skipping backups and recovery. An audit that finds no backup restore test is incomplete, because a site that cannot be restored cannot recover from ransomware or a bad deploy.

The bottom line

A website security audit is not a one-time scan. It is a repeatable habit: scope, map, test against the OWASP Top 10, check TLS and dependencies, rank what you find, and re-test after the fix.

Start today with the free checks: run your site through our security headers checker, then work through the ten OWASP categories one by one.

Frequently asked questions

What is a website security audit?

A website security audit is a structured check of a website for weaknesses an attacker could exploit. It covers code, configuration, certificates, dependencies, user access and logging, and it ends with a ranked list of findings to fix.

How to do a security audit of a website yourself?

Define the scope, map the site's pages, forms and APIs, then test each OWASP Top 10 category with two test accounts on a staging copy. Check TLS, headers and dependencies, record evidence for each finding, and rank them by severity.

How often should you audit a website?

Run a full audit at least once a year and before every major release. Run the relevant sections for every sensitive new feature, and re-test after any serious finding is fixed.

How much does a website security audit cost?

A self-audit with free tools costs only staff time. A professional audit or penetration test varies widely by site size and scope, so get a written quote that states what is tested, what is excluded, and what the report will contain.

What is the difference between a security audit and a penetration test?

An audit is a broad review of controls, configuration and code against a standard such as the OWASP Top 10. A penetration test is a focused, hands-on attempt to exploit weaknesses within an agreed scope. Many teams do the audit first, then use a penetration test for the highest-risk areas.

Can I audit a website I do not own?

No, not without written permission. Only test sites you own or have explicit written permission to test. Testing someone else's live site without permission can be illegal and can cause real harm.

What tools do you need for a website security audit?

A browser with developer tools, a TLS and header checker, a dependency audit tool such as npm audit, and a scanner for known issues. Manual tests with two accounts matter more than any single tool, because scanners miss access-control and logic flaws.

What should a website security audit report include?

Scope, method, a summary of findings by severity, evidence for each finding, clear remediation steps, and a re-test plan. Each finding should name the affected page or feature and a due date.

Sources

  1. Liantio — Web Application Security Checklist (OWASP Top 10 2025)
  2. PhatDev — Self-Check Your Website's Security: OWASP Top 10 (2025)
  3. Blitzhash — Application Security Audit Checklist (OWASP, Plain)
  4. Stingrai — OWASP Top 10 2025: What It Is, Full List and How to Test
  5. OWASP — Top 10:2025 summary via SquareOps
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the OWASP Top 10:2025 list and OWASP ASVS 5.0, with tests drawn from the OWASP testing approach.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free