OriginProtocol / OriginProtocol/origin-dollar
[SECURITY] Precision Loss in Elastic Supply Mechanism - Responsible Disclosure
Nobody has claimed this yet.
- Dominant language
- Solidity
- Stars
- 152
- Forks
- 115
- Avg merge
- 3d 20h
- Merged PRs (30d)
- 17
Description
Summary
I discovered a precision loss vulnerability in OUSD elastic supply accounting system during my security research.
Key Findings
- Small holders (100 OUSD) lose ~99 wei per rebase cycle
- Extreme case: 1 wei holders receive 0 yield completely
- 93% of rebase events (28/30 tested) cause precision loss
- Accumulated dust: 746,700 wei lost in invariant testing
Impact
This affects small holders disproportionately, causing fund loss over time.
PoC Available
I have a complete Foundry test suite demonstrating the issue with 5 passing tests. Please contact me at ljapptest@gmail.com for the full PoC code.
Severity
Medium - Fund loss for users, but requires specific conditions.
Please move this to a private security advisory if appropriate. I am available to provide full technical details and PoC code.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by treating this as a security disclosure: contact the reporter for the complete Foundry test suite and review the elastic supply accounting around the reported rebase events. Reproduce the five tests and confirm the precision-loss impact before deciding whether to move the report to a private security advisory; done means the vulnerability is triaged with the reporter's technical details secured.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- solidity
- Domain
- blockchain, security
- Issue type
- Bug
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100