Repository navigation
Conversation
|
@p3ris0n Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
Collaborator
|
Hi @p3ris0n , please kindly resolve the conflict. Thanks |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
feat(analyzer): callback-reentrancy and unsafe-catch detectors, post-mortem benchmark suite, rule-pack compatibility checks
Closes #1362
Closes #1364
Closes #1336
Closes #1335
Summary
This PR adds two security detectors to the control-flow and call-safety workstream, plus two reliability features for the analyzer pipeline.
try/catchhandlers that silently swallow failures from critical callsAll findings use the existing normalized finding schema and run inside the existing analyzer pipeline. The analyzer never executes repository code, package scripts or build hooks from the project under analysis.
Supported scope and assumptions
[e.g. >=0.6.0 <0.9.x][e.g. solc-JSON AST, default optimizer settings; IR assumptions][solc / parser / dependency versions][e.g. inline-assembly external calls][e.g. unresolved dynamic dispatch / cross-contract calls to unknown targets][e.g. unsupported syntax or compiler versions]Changes
#1362: Reentrancy through token hooks and receiver callbacks
Rule ID:
[GG-XXX-NNN]tokensReceived/tokensToSendhooks, as triggered bysendandoperatorSendonERC721Received, as triggered bysafeTransferFromand_safeMintonERC1155Received/onERC1155BatchReceived, as triggered bysafeTransferFrom,safeBatchTransferFromand_mintnonReentrantand equivalents)[list recognized patterns][other callback-safe patterns handled][why this severity][how confidence is derived][e.g. apply a reentrancy guard, reorder to checks-effects-interactions, ...]#1364: Unsafe try/catch that ignores failed calls
Rule ID:
[GG-XXX-NNN][...]Confidence evidence:[...]Remediation:[...]#1336: Benchmark suite from public post-mortem cases
[N cases, location, e.g. benchmarks/postmortem/].#1335: Rule compatibility checks before rule-pack release
[other compatibility dimensions checked]Security and robustness
[time / memory / file-size / recursion limits and where they are enforced]Testing
Each detector has fixtures for the cases below. Fixtures live in
[path].[fixture][fixture][fixture][fixture][e.g. guard on only one entry point, batch callbacks, inherited hooks][e.g. nested try/catch, catch with a revert, telemetry-only call][fixture][fixture][fixture][fixture]Coverage also includes inheritance, modifiers, libraries, proxies and compiler-version differences where relevant:
[confirm].Verification evidence
[link / result][link / result][link / result][link / result][path][before → after][link][reviewer / link][link or N/A]Documentation
[path][path][path]Known limitations and false-positive considerations
[e.g. callbacks through unresolved external targets are not tracked][e.g. custom guard implementations not matching known patterns may be flagged][e.g. try/catch classification depends on recognized token, oracle and bridge interfaces]Checklist