Vulnerabilities: The Weakness Behind a Possible Attack
A vulnerability is a security weakness that can be exploited or triggered to cause harm. It may lie in software, settings, procedures or the controls protecting a system. Finding one identifies a possible route to trouble; it doesn’t establish that someone has already used it.
Suppose a website lets signed-in customers retrieve order records but fails to check whether each record belongs to the requesting customer. Someone can sign in correctly and still read another person's order.
The missing permission check is the vulnerability. Using that gap to obtain someone else's record is exploitation. The exposed order information is a consequence.
- Start tonight: the board, case, power supply and memory card are all in the box.
- Run a home lab, an ad blocker or a practice server on one small computer.
- Learn Linux hands-on without risking your main machine.
The flaw isn't the attacker
These distinctions help untangle security reports:
- A vulnerability is the weakness, such as the missing record-ownership check.
- A threat is a potential event or circumstance that could cause harm. In this example, an attacker may attempt to obtain other customers' information.
- An exploit is a method or code used to take advantage of the weakness.
- Risk considers how likely the harmful event is and how much its consequences would matter.
The National Institute of Standards and Technology's risk-assessment guide connects threats, weaknesses, conditions, likelihood and impact. A list of flaws alone doesn't answer every question about risk.
For the imagined website, relevant details include who can reach the feature, what an account permits and how sensitive the records are. A working attack depends on the conditions that make the weakness usable.
Security weaknesses aren't all programming mistakes
A software bug is a defect in how a program works. Some bugs affect security; others produce errors without opening a meaningful security gap. A misspelled label and a missing access check deserve different attention.
The institute's vulnerability definition also covers weaknesses in security procedures, internal controls and implementation. A setting that exposes private information or a procedure that grants access without adequate checks can create a vulnerability even when the software follows its instructions.
A threat source needn't always be a deliberate attacker. Weaknesses can also be triggered by events or mistakes. The security harm matters even when no one intended it.
What Happens When the Attacker Finds the Flaw First?
Repair the check or reduce the opportunity
For the website, a permanent repair could add and enforce the missing permission check. A patch can deliver that software change.
Until a repair is ready, disabling the affected feature or restricting access might reduce exposure. That is mitigation: reducing the opportunity for harm while the underlying weakness may remain.
The United Kingdom's National Cyber Security Centre describes several possible treatments, including workarounds and tracked decisions when a problem can't immediately be fixed.
In the order-record example, a restricted feature may buy time. The lasting question is whether the application now checks that the requesting customer is entitled to the particular record it returns.
What Is CWE? Finding the Mistakes Behind Security Flaws

Exploits: How a Weakness Becomes a Working Attack

Mitigation: Why Reduced Risk Can Still Leave a Flaw

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