Guide
What is the Open Web Application Security Project (OWASP)?
Guide
By Max Winter-Leinweber13 min read
In short
The Open Web Application Security Project, renamed the Open Worldwide Application Security Project in 2023, is a non-profit foundation that publishes free guidance on making software hard to attack. It's best known for the OWASP Top 10, a ranked list of the most serious risks to web applications, last revised in 2025. In an app built with Lovable, Bolt or Base44, the platform covers two of those risks, shares three with you and leaves five in the code the AI wrote for your app.
- Stands for, since 2023
- Open Worldwide Application Security Project
- Current Top 10
- 2025, replacing 2021
- Number one risk
- Broken access control
- Left to your app's code
- 5 of the 10
What is the Open Web Application Security Project?
A non-profit foundation, started in 2001, that publishes free guidance on building software that's hard to attack. In February 2023 its board swapped the Web in its name for Worldwide, since the work now covers APIs, mobile apps and cloud services as much as websites, so it's officially the Open Worldwide Application Security Project. The acronym didn't change, which is why older pages, and most searches, still use the original name.
OWASP's projects are run by volunteers and published under open licences. The best known is the OWASP Top 10, a ranked list of the most serious risks to web applications, drawn up from data that security firms contribute about the flaws they find and from a survey of people who do the work.
Founders tend to meet the name second-hand. A larger customer's security questionnaire asks whether the app has been tested against the OWASP Top 10, or a penetration tester files each finding under one of its categories. This guide takes the current list and shows what each risk looks like in an app built by prompting Lovable, Bolt or Base44, so you can tell which apply to yours.
The OWASP Top 10 for 2025, and what each risk looks like in an AI-built app
The 2025 edition, announced in November 2025 to replace the 2021 list, keeps broken access control at number one and adds two new categories: software supply chain failures, and mishandling of exceptional conditions. Server-side request forgery, which had a place of its own in 2021, now sits inside broken access control.
| Category | What it means | How it shows up in an AI-built app |
|---|---|---|
| A01 Broken Access Control | Someone can see or change something that isn't theirs | A Supabase policy that lets any signed-in user read every row, or a server route that returns whichever record ID you put in the request |
| A02 Security Misconfiguration | A setting left at its default, or set for testing and never changed back | Sign-in links allowed to redirect anywhere, private uploads in a public storage bucket, or full error details shown to visitors |
| A03 Software Supply Chain Failures | Risk that arrives through code and tools you didn't write | Packages the AI added by name that nobody checked, and versions that drift because the lockfile was never committed |
| A04 Cryptographic Failures | Data or keys that should be protected by encryption and aren't | Mostly covered by the platform; the gap is sensitive fields, such as bank details, stored as plain text |
| A05 Injection | Input that the app ends up running as code or as part of a query | A model's answer or a user's comment put on the page as raw HTML, or an edge function that builds SQL by joining strings |
| A06 Insecure Design | A flaw in the rules a feature follows, which careful coding can't fix | A checkout that trusts the price the browser sends, or a free trial anyone can restart with a new email address |
| A07 Authentication Failures | Weaknesses in how people prove who they are, including credentials written into code | A Stripe or OpenAI secret key shipped in the browser's JavaScript, no email confirmation, or unlimited password guesses |
| A08 Software or Data Integrity Failures | Trusting code or data without checking where it came from | A payment webhook handled without verifying Stripe's signature, or prompts that change the live app with no review |
| A09 Security Logging and Alerting Failures | Not recording what happened, or not telling anyone when it matters | No record of who edited a record, and no alert when one account requests a thousand IDs in a minute |
| A10 Mishandling of Exceptional Conditions | Code that does the wrong thing when something unexpected happens | A permission check that lets the request through when its database lookup fails |
Several rows overlap with our production audit, which has you test data access, secrets, sign-in edge cases and payments yourself in an afternoon. The rest of this guide stays with the categories, and with the parts of them the audit doesn't reach. Run the seven-check production audit on your app.
Which OWASP risks do Lovable, Bolt and Base44 handle for you?
Two of the ten, nearly in full: cryptographic failures and injection, because the services underneath serve every page over HTTPS, store passwords as hashes and pass your filters to the database as values rather than as SQL. Three more are shared, with sensible defaults you can undo. The other five are rules about your particular app, so they live in code the AI wrote and nobody has reviewed.

What the platform covers
Lovable and Bolt keep their data in Supabase, whose sign-in stores only a hash of each password and whose JavaScript client sends filters as parameters. React escapes text before it reaches the page. Base44 runs its database and sign-in on its own servers, so the same protections are its job. The gaps open where generated code steps outside those defaults:
A component that renders a model's answer, or a user's comment, as raw HTML so the formatting shows, which lets a script hidden in that text run in other users' browsers.
An edge function that builds a SQL query by joining strings together, usually written to make a search box work.
Bank details, national insurance numbers or health notes kept in a plain text column, readable by anyone who gets past the access rules.
What you share with the platform
Misconfiguration, authentication and logging come with switches the platform provides and you set. Supabase lets you require email confirmation, set a minimum password length and restrict where sign-in links may send people, and a prototype usually has all three at their loosest. A secret key in the frontend belongs here too, because OWASP files hard-coded credentials under authentication failures. How keys leak from a Bolt.new app, and why they need rotating.
Logging is split the same way. Supabase and your host keep request logs, but nothing reads them, and the record that settles a dispute, who changed which record and when, only exists if the app writes it.
Base44 keeps more of this on its side, since its database, sign-in and functions run on servers you can't open up. What each entity lets a user read is still a setting made for your app, though, and the only way to know what it allows is to sign in as a second user and try. What moving a Base44 app onto a backend you own involves.
What stays with your app
Access control, supply chain, design, integrity and error handling are decisions about this app in particular: who owns which record, which packages it runs, what a customer may do and what happens when a step fails. A builder writes code for each as you prompt, guessing at the rules, and tries it on the happy path in its preview.
Lovable now runs a quick security scan when you open the publish dialog, covering database access rules and dependencies, with a deeper scan on request. Its own documentation says the scans don't replace a security review. A scan compares your app with patterns it knows; it can't know the rules your business needs.
Case study · Lovable
In 2025 a flaw in the database access policies of Lovable-generated apps was recorded in the US National Vulnerability Database as CVE-2025-48757. The entry describes insufficient row level security policies in Lovable through 15 April 2025, which let attackers who weren't signed in read or write the database tables of generated sites. In OWASP's terms, that's A01, broken access control.
Where does access control break after row level security is on?
In three places the usual test, signing in as one user and asking for another user's rows, never touches: code that runs with the service role key, files fetched by their path, and features that fetch a web address for the user. Switching on row level security for every table and testing it is still the first job, and the policy each kind of table needs is set out in our Lovable runbook. The row level security policy for each kind of table.
Functions that skip the policies. Edge functions often use Supabase's service role key, which bypasses row level security entirely. An AI asked to make a function work reaches for that key because it never hits a permissions error, so every function that takes a record ID has to check for itself that the caller owns the record.
Files reached by their path. Uploads in a public bucket can be downloaded by anyone who has or guesses the address, whatever the database allows. Private files belong in a private bucket with per-user folder rules, served through links that expire.
Features that fetch a URL. A feature that summarises a web page or imports from a link makes your server request an address the user typed. Pointed at an address that's only reachable from inside your hosting, it fetches things no visitor should see, which is why OWASP now counts it as broken access control. Allow only http and https, refuse private and internal addresses after looking the name up, and cap the time and size of each fetch.
Apps whose checks sit in server routes, as Replit Agent writes them, have the same problem in another place. Each route that takes an ID needs its own ownership check, and no dashboard lists the routes that lack one. Where Replit Agent puts the access check, next to Lovable and Bolt.
The two risks new in 2025, and why AI-written code is prone to both
Both describe habits of code written quickly by a model. It adds a package for every small job, and it catches errors so the preview keeps running.
Software supply chain failures
Every package an AI adds is code your app runs with full access to its data and keys. Models also invent package names that sound right and don't exist, and attackers have started publishing malicious packages under those names, a trick nicknamed slopsquatting. An install of a made-up name either fails or pulls in whatever someone has since published under it.
Commit the lockfile, so every install gets the versions you tested. Run npm audit to list known vulnerabilities in what the app ships. Then look up any package you don't recognise before trusting it: npm answers 404 for a name that doesn't exist, and a package created last week with no linked repository deserves a closer look.
npm audit --omit=dev
npm view react-hook-form time.created repository.urlThe builder is part of the chain too. Lovable and Base44 reach your repository through a GitHub app with write access, so once nobody prompts any more, remove that access and protect the main branch so nothing lands there without review.
Mishandling of exceptional conditions
OWASP's new tenth entry covers code that does the wrong thing when something unexpected happens: a timeout, a full disk, a reply in a shape nobody planned for. The dangerous version fails open. AI-written code often wraps a call in a try and catch that logs the error and carries on, which keeps the preview working and, inside a permission check, lets the request through.

Here's the pattern in a few lines of JavaScript, with the permission lookup made to fail the way a slow database does.
// Stands in for a database lookup that times out.
async function canEdit(userId, projectId) {
throw new Error("database timeout")
}
// Fails open: an error in the check lets the request through.
async function saveFailsOpen(userId, projectId) {
try {
if (!(await canEdit(userId, projectId))) return "403 Forbidden"
} catch (error) {
console.error("Permission check failed:", error.message)
}
return "200 Saved"
}
// Fails closed: anything short of a clear yes is a no.
async function saveFailsClosed(userId, projectId) {
let allowed = false
try {
allowed = (await canEdit(userId, projectId)) === true
} catch (error) {
console.error("Permission check failed:", error.message)
}
if (!allowed) return "403 Forbidden"
return "200 Saved"
}
console.log(await saveFailsOpen("user-b", "project-a"))
console.log(await saveFailsClosed("user-b", "project-a"))Run it with node check-access.mjs. Both versions log the failed lookup, then the first prints 200 Saved and the second prints 403 Forbidden. The second starts from no and lets the save through only on a clear yes, which is the habit to look for in every check the AI wrote.
Failing open isn't limited to permissions. A report marked finished after the model call behind it timed out, or a credit taken before a card that then declines, leaves the app in a state nobody designed. Put steps that must happen together in one database transaction, and mark work complete only after the step that does it succeeds.
Why can't a scanner find insecure design?
Because the code does exactly what it was asked to do. The flaw is in the rule, such as a checkout that charges whatever price the browser sends, so scans and code reviews both pass it, and it's the risk most likely to reach launch untouched.
Finding it means thinking like a customer who wants something for nothing. For each feature, write down what a dishonest user would try, then check that a rule on the server stops it, rather than a button the screen happens to hide.
| Feature | What a dishonest user tries | The rule that stops it |
|---|---|---|
| Checkout | Edits the price or plan in the request before it's sent | The server looks the price up from the plan and ignores any amount from the browser |
| Free trial | Signs up again with a new email address when the trial ends | Trials tied to something harder to repeat, such as a card or a verified company domain |
| Referral credit | Refers their own second account | Credit paid only once the referred account pays, and never between accounts sharing a card |
| Team invites | Reuses an old invite link after being removed from the team | Links that expire, work once and are checked against current membership |
| AI feature | Runs the expensive task thousands of times on one account | A per-user cap on calls, counted on the server |
The last row is a design flaw with a bill attached, and the fix is to count and limit every model call on the server. How to meter an AI feature so one account can't run up your costs.
Answering a customer who asks about the OWASP Top 10
Tell them what you checked, how and when, category by category. Don't call the app OWASP compliant: the Top 10 is an awareness document with nothing to certify against, and a buyer's security team will know that. If they want a standard, OWASP's Application Security Verification Standard, ASVS for short, turns the same ground into requirements you can test against, at three levels of depth.
Have these ready before the questionnaire arrives
A line for each Top 10 category: checked or not, how, and the date
The date of your last test with two accounts trying to read each other's records
Where your data and backups are stored, and in which country
Who is alerted when sign-ins fail in bulk or the app starts erroring, and how quickly
The report from any penetration test, with what has been fixed since
Where the data lives is usually the next question after security, and apps built on these platforms have a particular answer to it. Where an AI-built app's data is kept, and what UK GDPR asks.
If your product sends customer data to a model, expect questions from a second list as well. The OWASP Top 10 for LLM Applications, now part of OWASP's GenAI Security Project, starts with prompt injection, where text in a document or message talks the model into ignoring your instructions, and covers risks the web list leaves out.
If you'd rather hand the list to someone, hardening an AI-built app for launch is work we do in fixed-price sprints from £7,500 + VAT, with the code, hosting and accounts in your company's name. What each fixed-price sprint covers.
Frequently asked questions
- How often is the OWASP Top 10 updated?
- Every three to four years lately, with editions in 2017, 2021 and 2025. Each one is rebuilt from fresh data, so categories move, merge and get renamed between editions. A report written against the 2021 list may use names the current one no longer has, such as vulnerable and outdated components, which grew into software supply chain failures.
- Does a penetration test cover the OWASP Top 10?
- A web application test usually works through most of it, but some categories are hard to judge from outside. Design flaws depend on rules only you know, and logging can't be seen at all from the outside. Ask the tester which categories they covered and how, and offer to walk them through who may do what in the app.
- Is following the OWASP Top 10 a legal requirement in the UK?
- No law names it. UK GDPR asks for appropriate technical and organisational measures to keep personal data secure, and the Top 10 is a common way to show you've dealt with the usual risks, but working through it doesn't on its own make an app compliant.