---
title: "CWE-306: Missing Authentication for Critical Functionality"
url: https://radicalnotion.ai/cwe/cwe-306
type: cwe
description: "The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-306: Missing Authentication for Critical Functionality

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **Likelihood of exploit:** High
- **CVEs with this as primary weakness:** 3,577
- **Of those, in CISA KEV:** 45
- **New in 2026:** 1,975
- **CWE catalog version:** 4.21

## Description

The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase. |
| Architecture and Design | 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. |
| Operation | When migrating data to the cloud (e.g., S3 buckets, Azure blobs, Google Cloud Storage, etc.), there is a risk of losing the protections that were originally provided by hosting on internal networks. If access does not require authentication, it can be easier for attackers to access the data from anywhere on the Internet. |

## Applicable platforms

**Languages:** Go (Undetermined)

**Technologies:** Cloud Computing (Undetermined), ICS/OT (Often), AI/ML (Often)

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control, Other | Gain Privileges or Assume Identity, Varies by Context | 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, or possibly even executing arbitrary code. |

## Potential mitigations

### Architecture and Design

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.

### Architecture and Design

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.

### Architecture and Design

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.

### Architecture and Design (Libraries or Frameworks)

Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.

For example, consider using libraries with authentication capabilities such as OpenSSL or the ESAPI Authenticator \[REF-45\].

### Implementation, System Configuration, Operation

When storing data in the cloud (e.g., S3 buckets, Azure blobs, Google Cloud Storage, etc.), use the provider's controls to require strong authentication for users who should be allowed to access the data \[REF-1297\] \[REF-1298\] \[REF-1302\].

## Detection methods

### Manual Analysis

This weakness can be detected using tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session.

Specifically, manual static analysis is useful for evaluating the correctness of custom authentication mechanisms.

### Automated Static Analysis

Automated static analysis is useful for detecting commonly-used idioms for authentication. A tool may be able to analyze related configuration files, such as .htaccess in Apache web servers, or detect the usage of commonly-used authentication libraries.

Generally, automated static analysis tools have difficulty detecting custom authentication schemes. In addition, the software's design may include some functionality that is accessible to any user and does not require an established identity; an automated technique that detects the absence of authentication may report false positives.

Effectiveness: Limited

### Manual Static Analysis - Binary or Bytecode

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies

Effectiveness: SOAR Partial

### Dynamic Analysis with Automated Results Interpretation

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Web Application Scanner
- Web Services Scanner
- Database Scanners

Effectiveness: SOAR Partial

### Dynamic Analysis with Manual Results Interpretation

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Host Application Interface Scanner
- Fuzz Tester
- Framework-based Fuzzer

Effectiveness: SOAR Partial

### Manual Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Focused Manual Spotcheck - Focused manual analysis of source
- Manual Source Code Review (not inspections)

Effectiveness: SOAR Partial

### Automated Static Analysis - Source Code

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Cost effective for partial coverage:

- Source code Weakness Analyzer
- Context-configured Source Code Weakness Analyzer

Effectiveness: SOAR Partial

### Architecture or Design Review

According to SOAR \[REF-1479\], the following detection techniques may be useful:

Highly cost effective:

Cost effective for partial coverage:

- Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)
- Formal Methods / Correct-By-Construction
- Attack Modeling

Effectiveness: High

## Demonstrative examples

### Example 1

In the following Java example the method createBankAccount is used to create a BankAccount object for a bank management application.

Bad code:

```java
public BankAccount createBankAccount(String accountNumber, String accountType,
String accountName, String accountSSN, double balance) {
    BankAccount account = new BankAccount();
    account.setAccountNumber(accountNumber);
    account.setAccountType(accountType);
    account.setAccountOwnerName(accountName);
    account.setAccountOwnerSSN(accountSSN);
    account.setBalance(balance);

    return account;
}
```

Good code:

```java
private boolean isUserAuthentic = false;

// authenticate user,

// if user is authenticated then set variable to true

// otherwise set variable to false
public boolean authenticateUser(String username, String password) {
    ...
}

public BankAccount createNewBankAccount(String accountNumber, String accountType,
String accountName, String accountSSN, double balance) {
    BankAccount account = null;

    if (isUserAuthentic) {
        account = new BankAccount();
        account.setAccountNumber(accountNumber);
        account.setAccountType(accountType);
        account.setAccountOwnerName(accountName);
        account.setAccountOwnerSSN(accountSSN);
        account.setBalance(balance);
    }
    return account;
}
```

### Example 2

In 2022, the OT:ICEFALL study examined products by 10 different Operational Technology (OT) vendors. The researchers reported 56 vulnerabilities and said that the products were "insecure by design" \[REF-1283\]. If exploited, these vulnerabilities often allowed adversaries to change how the products operated, ranging from denial of service to changing the code that the products executed. Since these products were often used in industries such as power, electrical, water, and others, there could even be safety implications.

Multiple vendors did not use any authentication for critical functionality in their OT products.

### Example 3

In 2021, a web site operated by PeopleGIS stored data of US municipalities in Amazon Web Service (AWS) Simple Storage Service (S3) buckets.

Bad code:

```other
A security researcher found 86 S3 buckets that could be accessed without authentication (CWE-306) and stored data unencrypted (CWE-312). These buckets exposed over 1000 GB of data and 1.6 million files including physical addresses, phone numbers, tax documents, pictures of driver's license IDs, etc. [REF-1296] [REF-1295]
```

Good code:

```other
The sensitive information could have been protected by ensuring that the buckets did not have public read access, e.g., by enabling the s3-account-level-public-access-blocks-periodic rule to Block Public Access. In addition, the data could have been encrypted at rest using the appropriate S3 settings, e.g., by enabling server-side encryption using the s3-bucket-server-side-encryption-enabled setting. Other settings are available to further prevent bucket data from being leaked. [REF-1297]
```

While it was not publicly disclosed how the data was protected after discovery, multiple options could have been considered.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2024-11680 | File-sharing PHP product does not check if user is logged in during requests for PHP library files under an includes/ directory, allowing configuration changes, code execution, and other impacts. |
| CVE-2022-31260 | Chain: a digital asset management program has an undisclosed backdoor in the legacy version of a PHP script (CWE-912) that could allow an unauthenticated user to export metadata (CWE-306) |
| CVE-2022-29951 | TCP-based protocol in Programmable Logic Controller (PLC) has no authentication. |
| CVE-2022-29952 | Condition Monitor firmware uses a protocol that does not require authentication. |
| CVE-2022-30276 | SCADA-based protocol for bridging WAN and LAN traffic has no authentication. |
| CVE-2022-30313 | Safety Instrumented System uses proprietary TCP protocols with no authentication. |
| CVE-2022-30317 | Distributed Control System (DCS) uses a protocol that has no authentication. |
| CVE-2021-21972 | Chain: Cloud computing virtualization platform does not require authentication for upload of a tar format file (CWE-306), then uses .. path traversal sequences (CWE-23) in the file to access unexpected files, as exploited in the wild per CISA KEV. |
| CVE-2020-10263 | Bluetooth speaker does not require authentication for the debug functionality on the UART port, allowing root shell access |
| CVE-2021-23147 | WiFi router does not require authentication for its UART port, allowing adversaries with physical access to execute commands as root |
| CVE-2021-37415 | IT management product does not perform authentication for some REST API requests, as exploited in the wild per CISA KEV. |
| CVE-2020-13927 | Default setting in workflow management product allows all API requests without authentication, as exploited in the wild per CISA KEV. |
| CVE-2002-1810 | MFV. Access TFTP server without authentication and obtain configuration file with sensitive plaintext information. |
| CVE-2008-6827 | Agent software running at privileges does not authenticate incoming requests over an unprotected channel, allowing a Shatter" attack. |
| CVE-2004-0213 | Product enforces restrictions through a GUI but not through privileged APIs. |
| CVE-2020-15483 | monitor device allows access to physical UART debug port without authentication |
| CVE-2019-9201 | Programmable Logic Controller (PLC) does not have an authentication feature on its communication protocols. |

## Real CVEs with this weakness (sample of 12 of 3,577)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2025-32433 | Erlang/OTP SSH Vulnerable to Pre-Authentication RCE | critical | 10.0 | - | Yes | 2025-04-16 |
| CVE-2024-11680 | ProjectSend Unauthenticated Configuration Modification | critical | 10.0 | - | Yes | 2024-11-26 |
| CVE-2024-51567 | CyberPanel Incorrect Default Permissions Vulnerability | critical | 10.0 | - | Yes | 2024-10-29 |
| CVE-2023-36851 | Junos OS: SRX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload and download arbitrary files | critical | 10.0 | - | Yes | 2023-09-26 |
| CVE-2022-23227 | NUUO NVRmini2 Devices Missing Authentication Vulnerability | critical | 10.0 | - | Yes | 2022-01-14 |
| CVE-2010-5326 | SAP NetWeaver Remote Code Execution Vulnerability | critical | 10.0 | - | Yes | 2016-05-13 |
| CVE-2026-56164 | Microsoft SharePoint Server Elevation of Privilege Vulnerability | critical | 9.8 | - | Yes | 2026-07-14 |
| CVE-2026-35273 | PeopleSoft Enterprise PeopleTools: Updates Environment Management - takeover | critical | 9.8 | - | Yes | 2026-06-11 |
| CVE-2026-20253 | Unauthenticated Arbitrary File Creation and Truncation in a PostgreSQL Sidecar Service Endpoint in Splunk Enterprise | critical | 9.8 | - | Yes | 2026-06-10 |
| CVE-2026-46817 | Oracle Payments: File Transmission - takeover | critical | 9.8 | - | Yes | 2026-05-28 |
| CVE-2026-72529 | TrueConf Server Missing Authentication for Critical Function Vulnerability | critical | 9.3 | - | Yes | 2026-08-19 |
| CVE-2026-41940 | WebPros cPanel and WHM Authentication Bypass via Login Flow | critical | 9.3 | - | Yes | 2026-04-29 |

## Related attack patterns (CAPEC)

- [CAPEC-12](https://radicalnotion.ai/capec/capec-12): Choosing Message Identifier
- [CAPEC-166](https://radicalnotion.ai/capec/capec-166): Force the System to Reset Values
- [CAPEC-216](https://radicalnotion.ai/capec/capec-216): Communication Channel Manipulation
- [CAPEC-36](https://radicalnotion.ai/capec/capec-36): Using Unpublished Interfaces or Functionality
- [CAPEC-62](https://radicalnotion.ai/capec/capec-62): Cross Site Request Forgery

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-287](https://radicalnotion.ai/cwe/cwe-287) | Improper Authentication |
| Child | [CWE-288](https://radicalnotion.ai/cwe/cwe-288) | Authentication Bypass Using an Alternate Path or Channel |
| Child | [CWE-322](https://radicalnotion.ai/cwe/cwe-322) | Key Exchange without Entity Authentication |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | No Authentication for Critical Function | - | - |
| Software Fault Patterns | Missing authentication | SFP31 | - |
| OWASP Golang Secure Coding Practices Guide | Authentication and Password Management | - | - |
| ISA/IEC 62443 | Req CR 1.1 | Part 4-2 | - |
| ISA/IEC 62443 | Req CR 1.2 | Part 4-2 | - |
| ISA/IEC 62443 | Req CR 2.1 | Part 4-2 | - |
| ISA/IEC 62443 | Req SR-2 | Part 4-1 | - |
| ISA/IEC 62443 | Req SVV-3 | Part 4-1 | - |

## Frequently asked questions

### What is CWE-306?

The product does not perform any authentication for functionality that requires a provable user identity or consumes a significant amount of resources.

### What CVEs are caused by CWE-306?

3,577 recorded CVEs are attributed to CWE-306, including CVE-2025-32433, CVE-2024-11680 and CVE-2024-51567. 45 are listed in CISA's Known Exploited Vulnerabilities (KEV) catalog.

### Is CWE-306 part of the OWASP Top 10?

CWE-306 maps to OWASP Golang Secure Coding Practices Guide: Authentication and Password Management in the OWASP security taxonomy.

### How do you prevent CWE-306?

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.

### How is CWE-306 detected?

Manual Analysis: This weakness can be detected using tools and techniques that require manual (human) analysis, such as penetration testing, threat modeling, and interactive tools that allow the tester to record and modify an active session.

### What are the consequences of CWE-306?

Exploiting CWE-306 can lead to: Gain Privileges or Assume Identity, Varies by Context.

### Is CWE-306 actively exploited?

Yes. 45 CWE-306 vulnerabilities are in CISA's KEV catalog of actively exploited flaws, out of 3,577 recorded CVEs.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/306.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-306). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
