Security context

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

zeitgeistpm/zeitgeist
main @ 39ad8d6
4
Fixes
0
CVEs
HIGH
Peak severity
0.0%
Coverage
Highlights
Auth Bypass: 2 prior fixes. Scrutinize any change in this area.
zrml/authorized: most-fixed (2 issues). Treat as high-risk during review.
3 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: Origin validation was bypassed because the runtime accepted a raw account ID parameter for market dispute resolution instead of strictly validating the caller via the EnsureOrigin trait. This allowed unauthorized actors to resolve disputes.
Division by Zero: The pool join and exit mathematical calculations were vulnerable to division-by-zero or related mathematical errors when zero-value assets or pool amounts were supplied, potentially causing panics or exploit states.
Logic Error: The initial dispute validation failed to verify the new dispute outcome against the original market report when the list of previous disputes was empty, allowing invalid initial disputes to bypass checks.