CWE-198: Use of Incorrect Byte Ordering
CWE版本: 4.18
更新日期: 2025-09-09
弱点描述
The product receives input from an upstream component, but it does not account for byte ordering (e.g. big-endian and little-endian) when processing the input, causing an incorrect number or value to be used.
常见后果
影响范围: Integrity
技术影响: Unexpected State
检测方法
方法: Black Box
Because byte ordering bugs are usually very noticeable even with normal inputs, this bug is more likely to occur in rarely triggered error conditions, making them difficult to detect using black box methods.
引入模式
| 阶段 | 说明 |
|---|---|
| Implementation | - |
适用平台
编程语言
分类映射
| 分类名称 | 条目ID | 条目名称 | 映射适配度 |
|---|---|---|---|
| PLOVER | - | Numeric Byte Ordering Error | - |
| The CERT Oracle Secure Coding Standard for Java (2011) | FIO12-J | Provide methods to read and write little-endian data | - |