CWE-285 / WEAKNESS
Improper Authorization
The product does not perform or incorrectly performs an authorization check when an actor attempts to access a resource or perform an action.
- Category
- CWE weaknesses
- Version / scope
- CWE 5.0; release 2026-10-28; publisher status Draft
- Affected / relevant technologies
- Not Technology-Specific / Web Server / Database Server / Not Language-Specific
- Evidence
- Documentation: pinned-source excerpt checked. Execution: not tested. Editorial: curated reference.
Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.
Mechanism and prerequisites
Review publisher context and local applicability; this reference is not execution evidence.
Potential impact
Confidentiality Read Application Data Read Files or Directories An attacker could read sensitive data, either by reading the data directly from a data store that is not properly restricted, or by accessing insufficiently-protected, privileged functionality to read the data. Integrity Modify Application Data Modify Files or Directories An attacker could modify sensitive data, either by writing the data directly to a data store that is not properly restricted, or by accessing insufficiently-protected, privileged functionality to write the data. Access Control Gain Privileges or Assume Identity Execute Unauthorized Code or Commands When access control checks are not applied consistently - or not at all - an attacker could gain privileges and execute unauthorized code or commands by modifying or reading critical data directly, or by accessing insufficiently-protected, privileged functionality.
Versioned source scope
This record contains normalized, sometimes shortened source excerpts with editorial safety context. Markup and executable example blocks are omitted. Source-field verification does not establish device testing, a working detector or local applicability.
Publisher: MITRE. Release: CWE 5.0. Source checked: 2026-11-26.
Source object: CWE-285. Object modified: 2026-10-28.
Attribution and source terms (© The MITRE Corporation; reproduced with permission)Detection and investigation
- Automated Static Analysis Automated static analysis is useful for detecting commonly-used idioms for authorization. A tool may be able to analyze related configuration files, such as .htaccess in Apache web servers, or detect the usage of commonly-used authorization libraries. Generally, automated static analysis tools have difficulty detecting custom authorization schemes. In addition, the software's design may include some functionality that is accessible to any user and does not require an authorization check; an automated technique that detects the absence of authorization may report false positives. Limited
- Automated Dynamic Analysis Automated dynamic analysis may find many or all possible interfaces that do not require authorization, but manual analysis is required to determine if the lack of authorization violates business logic
- 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 authorization mechanisms. Moderate These may be more effective than strictly automated techniques. This is especially the case with weaknesses that are related to design and business rules. However, manual efforts might not achieve desired code coverage within limited time constraints.
- 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 SOAR Partial
Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.
Mitigation and response
- Architecture and Design Divide the product into anonymous, normal, privileged, and administrative areas. Reduce the attack surface by carefully mapping roles with data and functionality. Use role-based access control (RBAC) to enforce the roles at the appropriate boundaries. Note that this approach may not protect against horizontal authorization, i.e., it will not protect a user from attacking others with the same role.
- Architecture and Design Ensure that you perform access control checks related to your business logic. These checks may be different than the access control checks that you apply to more generic resources such as files, connections, processes, memory, and database records. For example, a database may restrict access for medical records to a specific database user, but each record might only be intended to be accessible to the patient and the patient's doctor.
- 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 authorization frameworks such as the JAAS Authorization Framework [REF-233] and the OWASP ESAPI Access Control feature [REF-45].
- Architecture and Design For web applications, make sure that the access control mechanism is enforced correctly at the server side on every page. Users should not be able to access any unauthorized functionality or information by simply requesting direct access to that page. One way to do this is to ensure that all pages containing sensitive information are not cached, and that all such pages restrict access to requests that are accompanied by an active and authenticated session token associated with a user who has the required permissions to access that page.
Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.
Related technical context
No protocol-specific mapping is asserted for this entry.
Publisher weakness and attack-pattern relationships
These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.
- CAPEC-1 → Related_Weakness → CWE-285 Open related reference
- CAPEC-104 → Related_Weakness → CWE-285 Open related reference
- CAPEC-127 → Related_Weakness → CWE-285 Open related reference
- CAPEC-13 → Related_Weakness → CWE-285 Open related reference
- CAPEC-17 → Related_Weakness → CWE-285 Open related reference
- CAPEC-39 → Related_Weakness → CWE-285 Open related reference
- CAPEC-402 → Related_Weakness → CWE-285 Open related reference
- CAPEC-45 → Related_Weakness → CWE-285 Open related reference
- CAPEC-5 → Related_Weakness → CWE-285 Open related reference
- CAPEC-51 → Related_Weakness → CWE-285 Open related reference
- CAPEC-59 → Related_Weakness → CWE-285 Open related reference
- CAPEC-60 → Related_Weakness → CWE-285 Open related reference
- CAPEC-647 → Related_Weakness → CWE-285 Open related reference
- CAPEC-668 → Related_Weakness → CWE-285 Open related reference
- CAPEC-76 → Related_Weakness → CWE-285 Open related reference
- CAPEC-77 → Related_Weakness → CWE-285 Open related reference
- CAPEC-87 → Related_Weakness → CWE-285 Open related reference
- CWE-1230 → ChildOf → CWE-285 Open related reference
- CWE-1256 → ChildOf → CWE-285 Open related reference
- CWE-1297 → ChildOf → CWE-285 Open related reference
- CWE-1328 → ChildOf → CWE-285 Open related reference
- CWE-1470 → ChildOf → CWE-285 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-1 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-104 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-127 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-13 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-17 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-39 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-402 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-45 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-5 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-51 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-59 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-60 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-647 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-668 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-76 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-77 Open related reference
- CWE-285 → Related_Attack_Pattern → CAPEC-87 Open related reference
- CWE-285 → ChildOf → CWE-284 Open related reference
- CWE-285 → ChildOf → CWE-284 Open related reference
- CWE-356 → ChildOf → CWE-285 Open related reference
- CWE-552 → ChildOf → CWE-285 Open related reference
- CWE-732 → ChildOf → CWE-285 Open related reference
- CWE-862 → ChildOf → CWE-285 Open related reference
- CWE-863 → ChildOf → CWE-285 Open related reference
- CWE-926 → ChildOf → CWE-285 Open related reference
- CWE-927 → ChildOf → CWE-285 Open related reference
Authoritative sources and attribution
Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Source excerpts are attributed and adapted under the linked publisher license; editorial context is separate. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.
- https://cwe.mitre.org/data/definitions/285.html — Publisher link; not separately HTTP-checked
- MITRE CWE 5.0 source snapshot — source accessed 2026-11-26
Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.
