Weakness · High
CWE-1280: Access Control Check Implemented After Asset is Accessed
What it is
A product's hardware-based access control check occurs after the asset has been accessed.
- Severity (our rating)
- High
- Likelihood of exploit
- Not rated by MITRE
- Introduced during
- Implementation
- Exploited in the wild
- No CVE in CISA's catalog
In more detail
The product implements a hardware-based access control check. The asset should be accessible only after the check is successful. If, however, this operation is not atomic and the asset is accessed before the check is complete, the security of the system may be compromised.
What an attacker can do
- Modify Memory (Access Control, Confidentiality, Integrity)
- Read Memory (Access Control, Confidentiality, Integrity)
- Modify Application Data (Access Control, Confidentiality, Integrity)
- Read Application Data (Access Control, Confidentiality, Integrity)
- Gain Privileges or Assume Identity (Access Control, Confidentiality, Integrity)
- Bypass Protection Mechanism (Access Control, Confidentiality, Integrity)
How to prevent it
Implementation
- Implement the access control check first. Access should only be given to asset if agent is authorized.
H2 Security
Found it in your code?
We review where it appears, fix it with your team, and check it was not already used against you.
Talk to our teamT Academy
Stop writing it in the first place
Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.
Start freeSource: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.