Oracle denomination or decimal conversion is incorrect
The consumer mixes quote currencies, token precision or feed precision and assigns the wrong economic value.
Candidate CWE: CWE-682
Test hypothesis#
Use local mock feeds representing equal economic prices at supported decimal scales. Compare against an independent unit-aware calculation and the normal supported feed baseline.
Evidence required#
Feed address/type assumptions, currency pair, feed/token decimals, exact conversion and downstream value discrepancy.
Rule out false positives#
Changing a feed to an unsupported format solely through administrator control is not necessarily an attacker-reachable vulnerability.
Playbook and command references#
- Contract signatures and oracles: context, freshness and units — Test signed-action context and price-consumer assumptions with local keys, mock feeds and explicit negative controls.
Find the associated command snippets
Referenced by these target playbooks#
Report checklist#
- Capture the affected version, configuration, identities, and object ownership.
- Preserve a valid baseline and a negative control.
- Reproduce the forbidden data access, action, or state change on controlled fixtures.
- Explain the intended security rule and why the observed behavior violates it.
- State prerequisites, uncertainty, cleanup, and the smallest demonstrated impact.
Conditional ATT&CK mapping#
No direct ATT&CK mapping selected. Record the weakness and demonstrated impact without forcing an adversary-behavior classification. See the mapping guide.