Skip to content
Business logic Write-up Intermediate

Inside the benchmark: app architectures, walkthroughs of findings, and what each scanner actually caught

A benchmark study of three AI-generated web applications found 74 confirmed vulnerabilities, including business-logic flaws such as refunds exceeding the original transaction amount and deactivated users keeping full access. An attacker could abuse these to inflate balances, retain access after deactivation, or read password hashes.

projectdiscovery.io

Published on projectdiscovery.io

This is Part 2 of our vibe coding security benchmark study. In Part 1, we compared how LLM-based security tools like ProjectDiscovery's Neo and Claude Code performed against traditional SAST and DAST scanners on AI-generated code.

The author, on projectdiscovery.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the generated code checks who a user is (authentication and role) but not what they are allowed to do (business rules, ownership and scope), and ORMs return every column by default.

Impact

A deactivated user, such as a terminated employee or flagged fraud account, could keep full access, and disputed refunds could credit far more than the original transaction.

What the attacker needed

An account on the target app; an admin able to deactivate users; a disputed transaction

How it was found

  1. Sign in as a normal user and capture the session token.
  2. Switch to an admin session and deactivate that user's account.
  3. Replay the original session token against several API endpoints.
  4. Observe that every endpoint still responds normally.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

These are three demo apps written largely by AI coding assistants. The AI produced code that looks finished but forgets to check things like whether a refund is bigger than the original payment, or whether a disabled account should still be allowed in. A person exploiting this could give themselves money or keep using an account after it was shut down.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.