Skip to content
Smart contracts Write-up Advanced

$STRK at Risk: Why Dismissing Security Reports as “AI Slop” i

The Starknet Attestation contract uses a block hash syscall to anchor proofs, but the validation logic is loosely coupled, allowing an attacker to craft a valid attestation without locking collateral. This could let an attacker drain STRK reward funds.

rdin777 Follow

Published on blog.blockmagnates.com

A deep dive into a Logic Bypass in Starknet Attestation and a lesson in failed responsible disclosure.

rdin777, on blog.blockmagnates.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the contract does not strictly bind the off-chain attestation data to the on-chain block hash, so a spoofed hash can satisfy the validation logic.

Impact

An attacker could potentially drain the protocol’s incentive funds by providing cryptographic proofs that satisfy the contract logic but represent zero actual value.

What the attacker needed

Ability to submit attestation proofs; no collateral locked

The fix

The attestation logic should be fixed by strictly binding off-chain data to the block hash and tightening the validation logic.

How it was found

  1. Deploy the vulnerable Attestation contract.
  2. Inject a spoofed block hash reference.
  3. Bypass the collateral check and gain reward eligibility.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A smart contract checks that a user has locked up collateral before paying out rewards. The check relies on a block hash, but the link between the hash and the actual collateral is weak. An attacker can fake the proof and still get the reward, potentially emptying the reward pool.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by rdin777

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.