Security review — 2 potential issues found
## Security concerns in foundry-rs/foundry
I was looking through the codebase and found a few patterns that might be security-sensitive. Targeting this to Security Contact if it hasn't been caught already.
Found 31 items total: 0 critical, 2 high, 2 medium, 27 low.
---
### only-owner-missing — .github/scripts/contracts/BatchCounter.sol line 11
**Severity:** HIGH
**Language:** Solidity
Admin function detected — verify proper access control (onlyOwner, roles).
```
function setNumber(uint256 newNumber) public {
```
### only-owner-missing — .github/scripts/contracts/CounterWithRequire.sol line 7
**Severity:** HIGH
**Language:** Solidity
Admin function detected — verify proper access control (onlyOwner, roles).
```
function setNumber(uint256 newNumber) public {
```
---
Some of these might be false positives — just wanted to put them on your radar. Happy to provide more context if any of these look actionable.
0 条评论