ChainGuard Security Studio
Scan Another Repo PayGate 0% Checkout View on GitHub ->
AUTOMATED SCAN · UNVERIFIED PREVIEW

foundry-rs/forge-std

Audit ID: aud_c6ab170350f9 · Grade: D (High Risk) · Certificate: /certificate/aud_c6ab170350f9
Unlock Verified Badge ($19) ->Unlock Full Grant & Investor Dossier ($49) ->
RISK EXPOSURE SCORE
47/100
Repo Security Badge
EMBED LIVE SECURITY BADGE IN FOUNDRY-RS/FORGE-STD README.MD
[![ChainGuard Security](https://chainguard-studio-production.up.railway.app/api/v1/repo-badge/foundry-rs/forge-std.svg)](https://chainguard-studio-production.up.railway.app/audit-github/foundry-rs/forge-std)
Free badge displays live scan score; upgrading to Verified ($19) turns this exact URL emerald green (ChainGuard Verified · On-Chain) automatically without editing your README again.
ON-CHAIN VERIFIED BADGE
$19 one-time

Turns your dynamic README SVG badge emerald green (ChainGuard Verified) + cryptographic SHA-256 certificate for users & LPs.

Certify forge-std ($19) ->
GRANT & INVESTOR DOSSIER
$49 one-time

Unlocks all line-by-line Solidity/MCP code fixes + downloadable audit dossier for Base, Arbitrum, Optimism & Solana grants + 5,000 Pro API calls.

Unlock Full Dossier ($49) ->
24/7 DRAINER & PROXY WATCHDOG
$29 / 30 days

Monitors your production dApp frontend & EIP-1967 proxy contracts every 5 minutes with instant Telegram/Slack alerts on drainer injection.

Configure 24/7 Watchdog ->

Static Analysis Findings (3)

[CRITICAL] SOL-002: Use of tx.origin for authorizationLine 21
Replace `tx.origin` with `msg.sender` and enforce OpenZeppelin `Ownable` / `AccessControl`.
require(msg.sender == owner, "Caller is not owner");
[MEDIUM] SOL-006: Floating Solidity pragma versionLine 54
Pin an exact audited compiler version (e.g., `pragma solidity 0.8.24;`).
pragma solidity 0.8.24;
[LOW] SOL-008: Unbounded loop over storage array (Gas DoS & cost spike)Line 103
Switch to pull-over-push withdrawal pattern or paginate with explicit `(offset, limit)` bounds.
uint256 len = items.length;
require(end <= len && end - start <= 50, "Page too large");