SNARKeling Treasure Hunt

First Flight #59
Beginner FriendlyGameFiFoundry
100 EXP
Submission Details
Impact: high
Likelihood: high

Blackwidow

Author Revealed upon completion

Root + Impact

Description

  • Describe the normal behavior in one or more sentences

  • Explain the specific issue or problem in one or more sentences

// Root cause in the codebase with @> marks to highlight the relevant section

Risk

Likelihood:

  • Reason 1 // Describe WHEN this will occur (avoid using "if" statements)

  • Reason 2

Impact:

  • Impact 1

  • Impact 2

Proof of Concept

0xb0b68D2fAacCe3a5C3DBC2979cC45F3c356f06B8

Recommended Mitigation

- remove this code
+ add this code
import { createPublicClient, defineChain, http } from "viem";
const buildbearRpcUrl =
"https://rpc.buildbear.io/uncomfortable-blackwidow-3bc14f48";
const buildBearNetwork = defineChain({
id: [25931],
name: "BuildBear Sandbox Network",
nativeCurrency: {
name: "BBETH",
decimals: 18,
symbol: "BBETH",
},
rpcUrls: {
default: {
http: [buildbearRpcUrl],
},
},
blockExplorers: {
default: {
name: "BuildBear Explorer",
url: "https://explorer.buildbear.io/uncomfortable-blackwidow-3bc14f48",
},
},
});
const publicClient = createPublicClient({
chain: buildBearNetwork,
transport: http(buildbearRpcUrl),
});

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!