Skip to content
Back to skills

Reviewing Access Control And Auth

ASecurity

Review Solidity access control: missing modifiers, tx.origin, initialize front-run, role rugging, default-public, and two-step ownership. Use on every admin, mint, upgrade, and withdraw path.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentsswiftaws

Security analysis

A100/100

Scanned September 2, 2026

npx -y skills add nuroctane/nur-cli --skill reviewing-access-control-and-auth --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Reviewing Access Control And Auth?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Reviewing Access Control And Auth
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/nuroctane-reviewing-access-control-and-auth/badge)](https://www.skillsdirectory.com/skills/nuroctane-reviewing-access-control-and-auth)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: reviewing-access-control-and-auth
description: "Review Solidity access control: missing modifiers, tx.origin, initialize front-run, role rugging, default-public, and two-step ownership. Use on every admin, mint, upgrade, and withdraw path."
---

# Reviewing access control and auth

SWC-105/106/115. In-scope. Every state changer gets a revert test.

## Walk

1. List every `external`/`public` that writes storage or moves value.
2. Who is allowed? Owner, role, callback, anyone.
3. `tx.origin` is a finding (phishable).
4. `initialize` / constructor: proxy vs impl (`reviewing-upgradeable-proxies`).
5. Two-step ownership (OZ `Ownable2Step`) if the owner can rug TVL.
6. Renounce/transfer owner while a critical role is the same EOA.
7. `onlyRole` with `DEFAULT_ADMIN_ROLE` held by a hot wallet.

## Tests

```solidity
function test_RevertWhen_AttackerWithdraws() public {
    vm.prank(attacker);
    vm.expectRevert();
    vault.withdraw(1 ether);
}
```

One per guard. Name them `test_RevertWhen_*`.

If a function is intentionally open (deposits), document why it cannot break conservation laws (`writing-foundry-invariant-handlers`).

## Paid bounty analogs

Full `$` table: `hunting-x-linked-bounties` `references/paid-payouts.md`. Uninitialized proxy is `reviewing-upgradeable-proxies`, not this file.

| $ | Protocol | Pack | Whitehat |
|---|----------|------|----------|
| $400k | Enzyme missing privilege | T02 | rootrescue |
| $100k | APWine delegations | T02 / T10 | setuid0 |
| $50k | Sense | T02 | alephv.eth |
| $50k | VeChainThor VTHO accrual | T01 | nnez |
| $40k | Cronos tx fees | C05 | zb3 |
| $28k | Alchemist admin brick | T02 | Dacian |
| $7.5k | Alchemix access | T02 | Ashiq |
| $4.5k | Bitswift unlimited mint | T02 | Immunefi |

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.