Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Review test-cases for dos-unexpected-revert-with-vector #256

Closed
arturoBeccar opened this issue Jul 4, 2024 · 1 comment · Fixed by #258
Closed

Review test-cases for dos-unexpected-revert-with-vector #256

arturoBeccar opened this issue Jul 4, 2024 · 1 comment · Fixed by #258
Assignees

Comments

@arturoBeccar
Copy link
Member

arturoBeccar commented Jul 4, 2024

Task

Determine whether it is necessary to split the test case for dos-unexpected-revert-with-vector, one assessing the authorization and the other assessing the usage of vector.

@arturoBeccar arturoBeccar changed the title Split test-cases for dos-unexpected-revert-with-vector Review test-cases for dos-unexpected-revert-with-vector Jul 5, 2024
@arturoBeccar arturoBeccar self-assigned this Jul 5, 2024
@arturoBeccar
Copy link
Member Author

arturoBeccar commented Jul 5, 2024

  • Split the test case into two to showcase different ways of solving the same issue. The vulnerable test case will be the same in both pairs. In the first pair, remediate the issue requiring authorization by the owner to call add_candidates().
    In the second pair, remediate the issue replacing the vector with a mapping like structure using DataKey Enum.

  • Update all relevant documentation for the vulnerability and detector.

tenuki added a commit that referenced this issue Jul 31, 2024
…-unexpected-revert-with-vector

#256 review test cases for dos unexpected revert with vector
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants