[SECURITY] GPU escrow create_escrow accepts arbitrary from_wallet without ownership verification
Maintainers usually reply within 10 days
Nobody has claimed this yet.
- #8183 by @shiyaam-s07 — closed without merging
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 24/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- authentication, payments, security
Research direction
Start by reading gpu_render_protocol.py, especially create_escrow (around L11635–L12987) and the Flask escrow routes (L618–L680); trace how wallet ownership and the escrow secret are handled. Review the linked pull request #8183 and the issue discussion before making changes. Done means escrow creation verifies control of from_wallet and does not expose the secret in the response, with tests covering the reported attack flow.
Written by the indexing model from the issue text.
Description
Finding
Location: gpu_render_protocol.py L11479-13091, Flask routes at L618-656
Issue: The /render/escrow, /voice/escrow, /llm/escrow POST endpoints accept from_wallet, to_wallet, and amount_rtc from the request body without verifying that the caller controls from_wallet. The create_escrow function:
- Takes
from_walletas a plain string (L11635) - Generates an
escrow_secret(L12114) - Inserts a record into
render_escrowwith status='locked' (L12205) - Returns the
escrow_secretdirectly in the response (L12987)
The release_escrow endpoint (L658-680) requires actor_wallet matching from_wallet AND the escrow_secret. But since the attacker set from_wallet themselves and received the secret from create_escrow, they know both values.
Attack Flow:
- POST
/render/escrowwith{"from_wallet": "victim_wallet", "to_wallet": "attacker_wallet", "amount_rtc": 100} - Server creates escrow record and returns
escrow_secretin response - POST
/render/releasewith{"job_id": "<returned_id>", "actor_wallet": "victim_wallet", "escrow_secret": "<returned_secret>"} - Escrow released — RTC credited to
attacker_wallet
Impact: If the escrow system is connected to actual RTC balances, an attacker can drain any wallet's funds by creating escrows on their behalf and releasing to themselves. Even if escrow is a separate ledger, the attacker can create fake locked escrows that may block victim's funds or affect reward calculations.
Fix: create_escrow must verify that the caller controls from_wallet via Ed25519 signature or wallet ownership proof. The escrow_secret should NOT be returned in the API response — it should be sent to from_wallet out-of-band or derived from a shared secret.
Wallet: leanworld7
Severity: HIGH
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
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day