Weakness · High
CWE-1296: Incorrect Chaining or Granularity of Debug Components
What it is
The product's debug components contain incorrect chaining or granularity of debug components.
- 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
For debugging and troubleshooting a chip, several hardware design elements are often implemented, including: Various Test Access Ports (TAPs) allow boundary scan commands to be executed. For scanning the internal components of a chip, there are scan cells that allow the chip to be used as a "stimulus and response" mechanism. Chipmakers might create custom methods to observe the internal components of their chips by placing various tracing hubs within their chip and creating hierarchical or interconnected structures among those hubs. Logic errors during design or synthesis could misconfigure the interconnection of the debug components, which could allow unintended access permissions.
What an attacker can do
- Gain Privileges or Assume Identity (Confidentiality, Integrity, Access Control, Authentication, Authorization, Availability, Accountability)
- Bypass Protection Mechanism (Confidentiality, Integrity, Access Control, Authentication, Authorization, Availability, Accountability)
- Execute Unauthorized Code or Commands (Confidentiality, Integrity, Access Control, Authentication, Authorization, Availability, Accountability)
- Modify Memory (Confidentiality, Integrity, Access Control, Authentication, Authorization, Availability, Accountability)
- Modify Files or Directories (Confidentiality, Integrity, Access Control, Authentication, Authorization, Availability, Accountability)
How to prevent it
Implementation
- Ensure that debug components are properly chained and their granularity is maintained at different authentication levels.
How to find it
- Architecture or Design Review. Appropriate Post-Si tests should be carried out at various authorization levels to ensure that debug components are properly chained and accessible only to users with appropriate credentials.
- Dynamic Analysis with Manual Results Interpretation. Appropriate Post-Si tests should be carried out at various authorization levels to ensure that debug components are properly chained and accessible only to users with appropriate credentials.
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.