CWE-921: Storage of Sensitive Data in a Mechanism without Access Control
The product stores sensitive information in a file system or device that does not have built-in access control.
How it's found
Storage of Sensitive Data in a Mechanism without Access Control is typically found by tracing untrusted input from where it enters the system to the point where it is used without the check or neutralization this weakness describes, combining manual code review with dynamic testing.
While many modern file systems or devices utilize some form of access control in order to restrict access to data, not all storage mechanisms have this capability. For example, memory cards, floppy disks, CDs, and USB devices are typically made accessible to any user within the system. This can become a problem when sensitive data is stored in these mechanisms in a multi-user environment, because anybody on the system can read or write this data. On Android devices, external storage is typically globally readable and writable by other applications on the device. External storage may also be easily accessible through the mobile device's USB connection or physically accessible through the device's memory card port.
Consequences
- Read Application Data, Read Files or Directories: Attackers can read sensitive information by accessing the unrestricted storage mechanism.
- Modify Application Data, Modify Files or Directories: Attackers can modify or delete sensitive information by accessing the unrestricted storage mechanism.
Where this fits in a TurboPentest engagement
This weakness is not covered by the automated black-box pentest. IntegSec pentesters cover it in a manual engagement.
Frequently asked questions
What is CWE-921?
The product stores sensitive information in a file system or device that does not have built-in access control.
How do you find Storage of Sensitive Data in a Mechanism without Access Control?
Storage of Sensitive Data in a Mechanism without Access Control is typically found by tracing untrusted input from where it enters the system to the point where it is used without the check or neutralization this weakness describes, combining manual code review with dynamic testing.
What is the impact of CWE-921?
Read Application Data, Read Files or Directories: Attackers can read sensitive information by accessing the unrestricted storage mechanism. Modify Application Data, Modify Files or Directories: Attackers can modify or delete sensitive information by accessing the unrestricted storage mechanism.
Does TurboPentest test for Storage of Sensitive Data in a Mechanism without Access Control?
This weakness is not covered by the automated black-box pentest. IntegSec pentesters cover it in a manual engagement.
Related CWEs
Written and reviewed by
Michel Chamberland - Founder & CEO, IntegSec
CISSP, OSCP, OSCE, CEH, GIAC, CCSK · 20+ years in offensive security
Michel has spent 20+ years on offensive security teams including IBM X-Force Red and Trustwave SpiderLabs, leading penetration tests, red team engagements, and breach response for Fortune 500 customers. He is the founder of IntegSec and the architect of TurboPentest.
Find these issues before an attacker does
TurboPentest runs an agentic AI pentest against your target and reports findings with proof, from $99 per target.
Start a pentest