[SECURITY] Unsigned attestation path grants full mining rewards without wallet ownership proof
Maintainers usually reply within 10 days
Nobody has claimed this yet.
- #8193 by @waterWang — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- authentication, blockchain, security
Research direction
Start with rustchain_v2_integrated_v2.2.1_rip200.py at the cited /attest/submit signature check (L5039-5042) and enrollment logic (L5306-5395); trace how verification and reward weight are determined for non-x86 miners. Check the existing attestation tests and run the relevant suite. Done means unsigned submissions cannot enroll with full rewards, while any explicitly supported legacy path remains restricted as intended.
Written by the indexing model from the issue text.
Description
Finding
Location: rustchain_v2_integrated_v2.2.1_rip200.py L5039-5042, L5306-5395
Issue: The /attest/submit endpoint accepts unsigned attestations for backward compatibility. When sig_hex and pubkey_hex are empty strings, the signature verification block is entirely skipped (L5039: # still accept *unsigned* attestations via the backward-compat). The attestation proceeds through nonce validation, hardware fingerprint checks, and is stored in miner_attest_recent (L5317). The miner is then auto-enrolled in epoch_enroll with full reward weight (L5392-5395).
For non-x86 miners (ARM, PowerPC, etc.), measurement_report_verified=False (L5366) only affects x86 vintage tier classification via _derive_enroll_weight_device (L2943). Non-x86 miners receive full hardware weight regardless of measurement_report_verified.
Impact: An attacker with valid hardware can submit attestations for ANY wallet address without proving they control that wallet's private key. While rewards go to the specified wallet (not directly stealable), this means:
- An attacker can enroll arbitrary wallets in mining without their owners' consent
- Mining farms can run unsigned miners at scale, bypassing the enrollment signature gate
- The
canonical_payload_verifiedflag (L5366) is not checked for non-x86 reward eligibility
Exploit Steps:
- POST
/attest/challengewith{"miner_id": "any_wallet_address"}→ get nonce - POST
/attest/submitwith the nonce, emptysignatureandpublic_key, and valid hardware fingerprint data - Server stores attestation and auto-enrolls the wallet in current epoch with full reward weight
Fix: Require signature verification for all new attestations. The unsigned backward-compat path should be deprecated or restricted to a whitelist of legacy miners.
Wallet: leanworld7
Severity: MEDIUM
References: bounty #1102
- Dominant language
- Python
- Stars
- 850
- Forks
- 589
- Avg merge
- 11d 7h
- Merged PRs (30d)
- 29
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Scottcjn/Rustchain
-
utxo_ledger (reference): failed apply_transaction leaks already-created outputs (supply inflation)Open
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 10 days
-
SDK CLI prints 0 RTC for canonical /wallet/balance responsesPossibly taken @ArtyormSatori claimed this 37 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Scottcjn/Rustchain#8580 · 4 comments ·
Maintainers usually reply within 10 days
-
utxo_ledger (reference): no coinbase authorization; mempool admits any input-less MINING_REWARDOpen
Difficulty 4/5 3-5 days Newbie friendliness 38/100
Maintainers usually reply within 10 days
-
[SECURITY] Non-finite and garbage weights pass the sybil-guard money chain — enrollment_weight has no isfinite guard and epoch_weight_to_units raises on NaN/infPossibly taken @thinhnx128 claimed this 28 days ago. Openbug
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Scottcjn/Rustchain#8619 · 2 comments ·
Maintainers usually reply within 10 days
-
[Antiquity] Celeron M (Banias/Dothan, 2004) has no brand rule — real vintage silicon falls to x86 default 1.0x while its Pentium M twin earns 1.9xPossibly taken @Limm-web claimed this 60 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 25/100
Scottcjn/Rustchain#8578 · 5 comments ·
Maintainers usually reply within 10 days
All issues in Scottcjn/Rustchain
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 69/100
daniel-ospina/tortoise#15308 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
difficulty:easy prio:low type:bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
NatronGitHub/Natron#2405 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Jstar269/nakagawa-recomp#3746 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day