Security Weaknesses: The Missing Check Behind a Flaw
A security weakness is a condition that can make a system less able to resist harm. It might be a design mistake, a missing check or an unsafe setting. Whether someone can take advantage of it depends on where it appears and how the system works.
Security failures often share a recognizable cause. One application might expose customer files; another might allow unauthorized changes. Both could have made the same basic mistake: failing to check whether an action is allowed.
- Learn to find the flaws in a web app before someone else does.
- Understand injection, broken logins and logic bugs well enough to fix them.
- Build the skills that web security jobs ask for.
Signed in doesn't mean permitted
Suppose a customer signs in to a delivery service and opens a receipt. The service checks that the customer has a valid account, but it doesn't check that the requested receipt belongs to that customer.
If the customer can request someone else's receipt and receive it, the service has a security problem. A working sign-in screen hasn't prevented it.
The missing step is authorization, the decision about whether a person or program may perform an action. Authentication is the separate check of a claimed identity. A system can correctly recognize a customer and still give that customer access to the wrong records.
The Common Weakness Enumeration, or CWE, catalogs recurring kinds of software and hardware weaknesses. Its CWE-862 entry names this pattern “Missing Authorization.” The number identifies a kind of mistake, not one particular delivery service or one reported attack.
A pattern and a particular problem
In everyday security writing, weakness and vulnerability often overlap. NIST, the U.S. standards agency, defines a vulnerability in terms of a weakness that can be exploited or triggered.
CWE makes a helpful distinction for studying causes. Its definition of a weakness describes a condition that can contribute to vulnerabilities under certain circumstances.
In the delivery-service example, the missing permission check is the weakness pattern. The specific way customers can retrieve other people's receipts is a vulnerability in that application. Someone exploiting it would be putting the flaw to use.
A software bug is broader still: a defect that makes a program behave incorrectly. A misplaced label and a missing permission check are both mistakes, but the word bug alone doesn't establish their security impact.
How Do You Know Which Flaws to Patch First?
Repairing more than the example
To fix the missing check, the application must enforce the permission rule whenever it handles a request for a private receipt.
The same question then applies to related actions. Does downloading a receipt use the same check as viewing it? Can customers change records they aren't allowed to read? These are examples of where a development team would look when checking the repair.
A weakness category gives that investigation a direction. Instead of treating one exposed receipt as an isolated accident, the team can look for the missing rule wherever the application handles private records.
What Is CWE? Finding the Mistakes Behind Security Flaws

Vulnerabilities: The Weakness Behind a Possible Attack

Input Validation Attacks: When Software Accepts the Wrong Data

QUOTE:
"Amateurs hack systems, professionals hack people."
