CWE-306: CWE-306: Missing Authentication for Critical Function

BaseStable🏆 #21 in Top 25 (2024)

Description

View on MITRE
744Related CVEs
9.38Severity Score
Back to CWE Lookup

Technical Details

Structure
Simple
Vulnerability Mapping
ALLOWED

Applicable To

Languages
Languages
Platforms

🏆 CWE Top 25 Historical Ranking

2023:#20
Score: 3.78
689 CVEs
2024:#21↓1
Score: 9.38
744 CVEs
Trend:Improving (moved up 1 ranks)

Frequently Asked Questions

What is CWE-306: CWE-306: Missing Authentication for Critical Function?+

CWE-306: CWE-306: Missing Authentication for Critical Function is a Common Weakness Enumeration (CWE) entry maintained by MITRE. Description

Is CWE-306 in the CWE Top 25 Most Dangerous Software Weaknesses?+

Yes. CWE-306 ranked #21 in the CWE Top 25 for 2024, associated with 744 CVEs that year. The CWE Top 25 highlights the most common and impactful software weaknesses based on real-world vulnerability data.

What are the security consequences of CWE-306: Missing Authentication for Critical Function?+

If exploited, CWE-306 (CWE-306: Missing Authentication for Critical Function) it can compromise Gain Privileges or Assume Identity and Varies by Context, leading to outcomes such as Scope: Access Control, Other Exposing critical functionality essentially provides an attacker with the privilege level of that functionality. The consequences will depend on the associated functionality, but they can range from reading or modifying sensitive data, accessing administrative or other privileged functionality and or possibly even executing arbitrary code..

How do you prevent or mitigate CWE-306: Missing Authentication for Critical Function?+

Recommended mitigations for CWE-306 include: Divide the software into anonymous, normal, privileged, and administrative areas. Identify which of these areas require a proven user identity, and use a centralized authentication capability. Identify all potential communication channels, or other means of interaction with the software, to ensure that all channels are appropriately protected, including those channels that are assumed to be accessible only by authorized parties. Developers sometimes perform authentication at the primary channel, but open up a secondary channel that is assumed to be private. For example, a login mechanism may be listening on one network port, but after successful authentication, it may open up a second port where it waits for the connection, but avoids authentication because it assumes that only the authenticated party will connect to the port. In general, if the software or protocol allows a single session or user state to persist across multiple connections or channels, authentication and appropriate credential management need to be used throughout. For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602 . Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server. Where possible, avoid implementing custom, "grow-your-own" authentication routines and consider using authentication capabilities as provided by the surrounding framework, operating system, or environment. These capabilities may avoid common weaknesses that are unique to authentication; support automatic auditing and tracking; and make it easier to provide a clear separation between authentication tasks and authorization tasks. In environments such as the World Wide Web, the line between authentication and authorization is sometimes blurred. If custom authentication routines are required instead of those provided by the server, then these routines must be applied to every single page, since these pages could be requested directly.

Which programming languages are affected by CWE-306: Missing Authentication for Critical Function?+

CWE-306 commonly affects Languages. Note that weaknesses are often language-agnostic patterns, so secure coding practices apply broadly.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-306 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More