Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Covers common Solidity vulnerabilities (reentrancy, overflow, access control) and secure patterns for writing and auditing smart contracts.
87% 100%+13 ptsof test cases passed
Passed 23 of 23 test cases with the skill, and 20 of 23 without it.
We are preparing our token vault contract for an external security audit. Please review our access control and authorization logic, identify any unsafe authentication patterns or missing modifiers, and update the contract with full NatSpec annotations and input validation checks.
Replaces tx.origin with msg.sender for authorization checks
3 of 3 safety checks passed
Master smart contract security best practices, vulnerability prevention, and secure Solidity development patterns.
Attacker calls back into your contract before state is updated.
Vulnerable Code:
// VULNERABLE TO REENTRANCY
contract VulnerableBank {
mapping(address => uint256) public balances;
function withdraw() public {
uint256 amount = balances[msg.sender];
// DANGER: External call before state update
(bool success, ) = msg.sender.call{value: amount}("");
require(success);
balances[msg.sender] = 0; // Too late!
}
}
Secure Pattern (Checks-Effects-Interactions):
Published skills whose descriptions closely match this one, with their benchmark result.
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.