Skip to content
All articles
November 6, 2026 12 min read

Injection, Broken Access Control, Deserialization, TOCTOU: The Four Flaw Families and the Coding Rules That Kill Them

Chris Rees

Chris Rees

25+ years in IT · Pluralsight author, 4.6/5 across 2,000+ ratings

Share

Injection, Broken Access Control, Deserialization, TOCTOU: The Four Flaw Families and the Coding Rules That Kill Them
Skillthropicwww.skillthropic.com

Domain 8 is the domain security managers dread, because it sounds like a programming exam. It is not. The CISSP wants a security professional who can read a description of a bug, name its family, and know which secure coding practice would have prevented it, so they can require that practice from a development team. Most application breaches come from four families of flaw, and each has a rule that kills it. Learn the four, and Domain 8 shrinks to a manageable size.

See an injection flaw in action: this demo logs in as admin with a quote, OR 1=1 and two dashes, about four and a half minutes.

Four families, four rules

Four flaw families in a grid: injection, prevented by parameterization and validation; broken access control including broken object level authorization, prevented by server-side checks on every request; insecure deserialization and memory unsafety, prevented by never deserializing untrusted input and using memory-safe languages; and race conditions including time-of-check to time-of-use, prevented by atomic operations and checking at the moment of use THE MISTAKE, AND THE RULE THAT PREVENTS IT 1. Injection untrusted input is assembled into a command or query and executed as if it were code Rule: parameterize; never build queries from strings. validate input against what is expected, encode output 2. Broken access control the code trusts the client to ask only for what it is allowed; change an ID in the URL and read another record Rule: authorize every request, on the server, per object. deny by default; never rely on hiding the link 3. Deserialization and memory data from outside is turned back into objects or written into memory the program did not bound-check Rule: never deserialize untrusted input; use safe languages. bounds checking, integrity checks on serialized data 4. Race conditions the program checks something, then acts on it, and the world changed in the gap between the two Rule: check and use atomically, or check at the moment of use. locks, transactions, no shared state without synchronization
Every family is a trust mistake: the code trusted input, trusted the client, trusted data, or trusted that nothing changed. The rules remove the trust.

Injection is the oldest and still the most common. SQL, operating system commands, LDAP queries, even log entries: anywhere untrusted text is glued into something that will be interpreted. The prevention is parameterization, which separates the query from its data so the data can never become code, backed by input validation that accepts only what is expected and output encoding so that data displayed back cannot execute in the browser. A scenario describing a login bypassed with a quote and an OR is injection, and the fix is parameterized queries, not a longer blocklist.

Broken access control is the family that has risen to the top of every recent breach list, and the exam calls out its API form, broken object level authorization (BOLA). The application authenticated you, then let you read invoice 10442 because you asked for it, without checking that invoice 10442 is yours. The rule is authorization on every request, on the server, for the specific object, with deny as the default. Hiding the link, obfuscating the ID, or checking in the client are not controls.

Insecure deserialization and memory unsafety share a row because they share a shape: data from outside is turned into program state the code did not scrutinize. Deserializing an untrusted object can execute code inside the parser. Writing input into a buffer without checking its length overwrites whatever is next in memory. The rules are to never deserialize untrusted input without integrity checks and a restricted set of allowed types, and to prefer languages that do bounds checking for you.

Race conditions are the subtle family. The classic form is time-of-check to time-of-use (TOCTOU): the program checks that a file is safe to open, an attacker swaps the file, the program opens the swapped one. The rule is to make the check and the use a single atomic operation, or to check at the moment of use rather than in advance. A scenario about a balance check that passed and a withdrawal that overdrew anyway, because two requests arrived at once, is a race condition, and the fix is a transaction or a lock.

Memory safety is a language decision

Objective 8.2 lists memory-safe versus unsafe languages, and the exam's point is organizational rather than technical. In languages such as C and C++, the programmer manages memory directly, and a single mistake produces the buffer overflows, use-after-free and out-of-bounds reads that account for a large share of critical vulnerabilities in systems software. In memory-safe languages (Rust, Go, Java, C#, Python and most modern languages), the runtime or the compiler enforces the bounds, and that whole class of vulnerability largely disappears.

The security decision is therefore made when the language is chosen, not when the code is reviewed. A scenario where an organization is starting a new component with a security-critical role, and asks how to reduce memory vulnerabilities, wants a memory-safe language, and the distractors will offer more testing of an unsafe one.

The pipeline is a target

Objective 8.2 also covers the development ecosystem: source repositories, the build pipeline, the artifacts it produces. The exam's framing is that the pipeline is itself an attack surface. A compromised build server can insert code into every release; a secret committed to a repository is a credential in the open, and rewriting the commit does not remove it from history; an unprotected branch lets one compromised developer account push to production.

Ecosystem control What it prevents
Branch protection and required reviews one account pushing unreviewed code to a release branch
Secrets scanning and vaults credentials in repositories, and in their history
Signed commits and signed artifacts code or builds substituted between developer and deployment
Software bill of materials and dependency pinning unknown or silently changed third-party components
SAST, DAST, IAST and SCA gates in CI/CD known flaw patterns and vulnerable dependencies reaching a build
Least privilege for build agents a compromised pipeline reaching production systems

The testing tools deserve one line each, because the exam tests where they fit. Static analysis (SAST) reads source code without running it and finds patterns. Dynamic analysis (DAST) attacks the running application from outside and finds what is actually exploitable. Interactive analysis (IAST) instruments the running application from inside, combining the two. Software composition analysis (SCA) inventories third-party components and checks them against vulnerability databases. A question about finding a vulnerability in a library the team did not write is SCA; one about finding an injection flaw before the code is ever run is SAST.

Maturity models: can the organization keep doing this?

A single secure release proves little. Objective 8.1 names three models for measuring whether an organization has the practices to produce secure software repeatably.

  • CMMI (Capability Maturity Model Integration) grades process maturity generally, from initial and chaotic through managed, defined, quantitatively managed and optimizing. It is not security-specific, but a mature process is the precondition for consistent security activities.
  • SAMM (Software Assurance Maturity Model, from OWASP) is security-specific and prescriptive: it defines security practices across governance, design, implementation, verification and operations, with maturity levels for each, and it is used to plan improvement.
  • BSIMM (Building Security In Maturity Model) is descriptive: it measures what real organizations actually do and lets you compare your program against that population.

The exam's distinction: SAMM tells you what you should do; BSIMM tells you what others do. A question about planning a secure development program from scratch points at SAMM; one about benchmarking an existing program against peers points at BSIMM.

Shift left, and the metric that proves it

Every model in the domain assumes the same economics: a defect found in design costs a conversation, one found in testing costs a fix, one found in production costs an incident. Shift left is the practice of moving security activities earlier, and the outline gives you the metrics that show whether it is working.

A bar chart of where security defects are found across four quarters after a shift-left program: in quarter one most are found in production and testing, by quarter four most are found in design and code review, with the defect escape rate falling from 54 percent to 13 percent WHERE DEFECTS ARE FOUND, BEFORE AND AFTER SHIFTING LEFT Q1 Q2 Q3 Q4 escape rate 54% escape rate 13% production testing code review and CI design and threat modeling illustrative
The total number of defects barely changes. Where they are caught changes completely, and the escape rate, the share reaching production, is the number that shows it.

The defect escape rate is the share of defects that reach production rather than being caught earlier, and it is the single best measure of whether a secure development program is working. Remediation metrics (time from discovery to fix, by severity) show whether the organization acts on what it finds. And verification versus validation is the vocabulary the exam attaches to testing: verification asks whether the software was built correctly against its specification; validation asks whether the right software was built, against the need. A product can pass every verification test and fail validation because the specification itself was wrong.

Four stems, decoded

  1. A user changes the account number in an API request and receives another customer's statement. Broken object level authorization. Authorize per object on the server.
  2. A file upload feature passes safety checks, and the file is replaced with a malicious one before the application processes it. TOCTOU. Check at the moment of use, or perform the check and the use atomically.
  3. A team starting a new cryptographic library asks how to avoid buffer overflows. Choose a memory-safe language; testing an unsafe one harder is the distractor.
  4. An organization wants to compare its secure development program with those of similar companies. BSIMM, which is descriptive. SAMM would tell them what to do next.

Key takeaways

  • Four families, four rules: parameterize against injection, authorize every object on the server against broken access control, never deserialize untrusted input and use memory-safe languages, and make check-and-use atomic against TOCTOU.
  • Memory safety is chosen with the language, not fixed in review.
  • The pipeline is an attack surface. Branch protection, secrets scanning, signed artifacts, SBOMs and SAST, DAST, IAST and SCA gates defend it.
  • SAMM prescribes, BSIMM describes, CMMI grades process maturity generally.
  • The defect escape rate proves whether shifting left worked. Verification asks "built right?", validation asks "the right thing?"

Secure coding and the development ecosystem span objectives 8.1, 8.2 and 8.5 of CISSP Domain 8, Software Development Security, 10% of the exam. The same flaw families reappear in the OWASP list for LLM applications, and the pipeline controls are the ones an AI supply chain inherits. Work all 20 topics with our CISSP Domain 8 study guide.

#CISSP #ISC2 #SecureCoding #ApplicationSecurity #Injection #BOLA #DevSecOps #OWASP #InfoSec #CyberSecurity

CISSP Domain 8 · software development security

Recognize the flaw, name the rule

Secure coding guidelines close CISSP Domain 8, 10% of the exam. Work all 20 topics across five objectives, from security in the development lifecycle and the development ecosystem through assessing software security and acquired software, with 60 practice questions.

  1. Find your gapsA free readiness quiz scores you domain by domain.
  2. Study what's on the testWork through every objective, with practice questions.
  3. Book it with confidenceSchedule the exam when you're scoring well in every domain.

Read a free excerpt from CISSP Domain 8: Software Development Security

Share this article

Keep reading

CISSP deep dives

Waterfall to DevSecOps: Development Methodologies, Maturity Models, and the Pipeline Controls CISSP Domain 8 Tests

A penetration test before each quarterly release made sense when there were quarterly releases. It does not survive a team that deploys every few hours. CISSP objectives 8.1 and 8.2: where security fits in waterfall, spiral, Agile, Scrum, DevOps, DevSecOps, and SAFe, what CMMI, SAMM, and BSIMM each measure, change management and integrated product teams, and the control that belongs at every stage of the development ecosystem from language choice to the CI/CD pipeline.

Read
CISSP deep dives

Read-Through to Full Interruption: The Five DR Test Types, and the Seven-Step Recovery Process CISSP Expects You to Run

Six years of announced tabletops that never produced a finding is not evidence that a disaster recovery plan works. CISSP objectives 7.11 and 7.12 as the exam tests them: the seven elements of DR execution from declaration to lessons learned and who owns each, the five exercise types from read-through to full interruption with the risk, the cost, and what each can and cannot prove, and what a business continuity exercise is expected to produce.

Read
CISSP deep dives

Synthetic Transactions, Misuse Cases, and Coverage Analysis: The Ten Security Controls Tests CISSP Makes You Tell Apart

CISSP objective 6.2 names ten testing techniques, and the exam rarely asks what one is; it describes a situation and asks which one fits. This post sorts the list by what each technique proves: log reviews and synthetic transactions for controls in operation, code review from static analysis to fuzzing and pair programming, misuse cases, coverage analysis, interface testing, breach attack simulation, and compliance checks, plus the method for choosing the test from the stem.

Read

Follow Skillthropic

Keep learning between study sessions

The same exam-focused teaching, in smaller pieces, wherever you scroll.

Enjoyed this? Get the AI security news that matters.

Join The AI Security Brief for the top AI security news, plus what's important to the C-suite. Free, straight to your inbox.

No spam. Unsubscribe anytime.