How to Write a PoC
A Proof of Concept (PoC) demonstrates a concept's feasibility. In the context of smart contract auditing, a PoC demonstrates a vulnerability or flaw in a smart contract. A well-crafted PoC can help developers understand the vulnerability and its implications, making it easier to address the issue.
By following this guide and template, auditors can ensure that their PoCs are clear, concise, and effective in communicating vulnerabilities to judges.
Key elements of a good PoC
Recommendations:
Provide suggestions or fixes to address the vulnerability.
Link to the vulnerable smart contract, code, or any other relevant links or resources.
Proof of concept (PoC) template
markdownCopy code## Proof of Concept for [Vulnerability Name]
### Overview:
Briefly describe the vulnerability.
### Actors:
- **Attacker**: Description of the attacker's role.
- **Victim**: Description of the victim's role.
- **Protocol**: Description of the protocol's role.
### Working Test Case (if applicable):
```solidity
// Solidity code or test case demonstrating the vulnerability
// Line 1: Explanation of line 1
// Line 2: Explanation of line 2
// ...
Last updated
Was this helpful?