Software Securityhome
Fix a findingSearch
Tag

Business logic and race conditions

7 guides tagged Business logic and race conditions, grouped by topic, with the SDLC phase and role each is written for.

SDLC phases
Roles

Application security

6 guides
Guide · Application security

Preserve business invariants under concurrent requests

Make a balance, reservation or approval rule hold when requests overlap, retry and fail halfway through.

Design, Testing · Developers, AppSec engineers

Guide · Application security

Test smart contracts through state invariants

Define the properties funds and privileges must preserve, then exercise callbacks, transaction sequences and exceptional conditions locally.

Design, Development, Testing · Developers

Guide · Application security

Prevent business-logic flaws with server-side invariants

Recompute prices on the server, run workflows as state machines, build reset links from configuration, limit valuable flows, and turn each business rule into an invariant that the database and the tests both check.

Planning, Design, Testing · Developers, AppSec engineers

Reference · Application security

Abuse case library: tests and controls by feature

Recurring abuse cases for sign-up and login, password reset, MFA enrolment, invites, file upload, payments and coupons, webhooks, search, export, admin and AI chat or agents: the attacker goal, preconditions, a concrete test and the control, each linked to CWE and CAPEC.

Planning, Design, Testing · Developers, AppSec engineers

Guide · Application security

Create temporary files safely: mkstemp, O_EXCL and private directories

Stop symlink, hardlink and pre-created-file attacks on the temporary files your code writes in shared directories such as /tmp: create each file atomically with O_EXCL and owner-only permissions through mkstemp or its equivalent in shell, Python, Java, Node.js, Go, .NET and Rust, keep related files in a private directory, and treat the Linux protected_* sysctls and systemd PrivateTmp as a backstop.

Design, Development, Testing · Developers

Guide · Application security

DeFi attack patterns: oracles, flash loans, proxies and signatures

The four smart-contract attack classes beyond reentrancy: price-oracle manipulation, flash-loan amplification, upgradeable-proxy storage collisions and uninitialized implementations, and signature replay, each with vulnerable and fixed Solidity, Foundry tests and verified incidents.

Design, Development, Testing · Developers

Runtime, cloud & APIs

1 guide

Practice

All tags, lifecycle stages and roles

Find your next answer

Type to search. Search runs in your browser.

Searches run in your browser, but the host can infer them from the index files they load. The address shows your search so you can bookmark or share it.