Security context

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

tokenysolutions/t-rex
main @ f139012
19
Fixes
0
CVEs
HIGH
Peak severity
61.1%
Coverage
Highlights
Auth Bypass: 12 prior fixes. Scrutinize any change in this area.
contracts/token/TransferManager.sol: most-fixed (7 issues). Treat as high-risk during review.
17 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 transfer constraints (such as balances and frozen token rules) against the transaction caller instead of the actual token owner allowed unauthorized transfers of restricted or frozen assets. Developers must ensure that 'transferFrom' operations always check limits against the designated source wallet.
Auth Bypass: Functions performing identity validation failed gracefully by reverting transactions instead of returning boolean 'false', creating denial-of-service conditions during verification flows. Proper try/catch handling and explicit boolean returns are required for robust identity checks.
Storage Collision: Unstructured storage layouts in implementation authorities risks overwriting crucial implementation addresses when upgrading or initializing proxies. Correct storage-slot overrides must be enforced.