Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

umaprotocol/protocol
master @ f8814be
27
Fixes
0
CVEs
HIGH
Peak severity
28.0%
Coverage
Highlights
Auth Bypass: 7 prior fixes. Scrutinize any change in this area.
contracts/TokenizedDerivative.sol: most-fixed (4 issues). Treat as high-risk during review.
15 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns

The bug types that recur here, drawn from past fixes, not open vulnerabilities.

Auth Bypass: Validating callers via tx.origin allowed contract relays and malicious intermediaries to bypass authorization checks. The fix enforces msg.sender tracking through the OptimisticAssertor to preserve correct origin context.
Access Control: Critical dispute and resolution callback interfaces lacked restriction, allowing arbitrary external actors to trigger state changes. Applying the onlyOptimisticAsserter modifier restricted execution exclusively to authorized contracts.
Integer Overflow: Direct casting between signed and unsigned integer types (int, uint) in core derivative contracts introduced overflow vulnerabilities, requiring safe casting library functions to prevent arithmetic manipulation.