Skip to content
Smart contracts Write-up Advanced

Strengthening Web3 Security: Recent Vulnerability Findings from Y

The assessment found a dynamic delegatecall in a smart contract that could let a malicious target write to the contract's storage, and a signature verification flaw in the API that allowed a narrow chance of signature replay. It also found an IDOR exposing non-sensitive user metadata and an overly permissive CORS configuration that could leak API responses.

Yhbit Follow

Published on yhbit.medium.com

As Web3 adoption accelerates, so does the sophistication of security risks across smart contracts, APIs, and decentralized applications. At Yhbit, our mission is simple: identify weaknesses early and protect users before threats materialize.

Yhbit, on yhbit.medium.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 a dynamic delegatecall to an externally influenced target without strict access validation, plus signature checks that did not bind the signer's intent with nonces and domain separation.

Impact

A malicious target contract could modify internal state and roles, and replayed signatures could trigger unintended user actions or unauthorised transaction requests in specific low-frequency conditions.

What the attacker needed

A malicious or compromised target contract; specific low-frequency conditions for replay; a predictable resource identifier in the API

The fix

The issues were fixed by moving to a controlled execution pattern with strict access validation, enforcing strict nonce checks and domain separation, adding stricter permission checks with randomised resource identifiers, and restricting allowed CORS origins.

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 is a program on a blockchain. One contract was set up to run code from another contract, and if that other contract were malicious it could change the first contract's stored data, such as balances. Separately, the backend accepted signed messages without properly checking what the user meant to approve, so in rare cases a signature could be reused.

What is Smart contracts?

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

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.