How a Chainlink Data Streams Oracle Design Flaw Led to a $33K Loss on HyperEVM | PandaSecurity
Web3 Security

How a Chainlink Data Streams Oracle Design Flaw Led to a $33K Loss on HyperEVM

PandaSecurity Team •
#Oracle Security#DeFi Exploit#Smart Contract Audit
Oracle manipulation attack affecting DeFi lending protocol

On September 16, 2026, the Prime protocol on HyperEVM suffered an oracle manipulation attack that caused approximately $33.4K in losses.

The incident involved the integration of Chainlink Data Streams through a custom oracle middleware contract. The vulnerability was not related to Chainlink signature verification itself, but rather the missing validation logic after receiving verified oracle reports.

The middleware accepted valid signed reports but failed to verify whether the incoming price data was newer than the existing stored value. This allowed an attacker to update the oracle price with outdated but valid data and manipulate collateral valuation inside the lending system.


Incident Overview

The vulnerable component was the DataStreamConsumer contract.

The contract exposed the following function:

function verifyReport(bytes memory unverifiedReport) external

The function was permissionless, meaning anyone could submit a Chainlink Data Streams report.

After the report was verified by Chainlink’s VerifierProxy, the contract directly updated the stored oracle price:

data.answer = report.price;

However, there was no check to confirm:


Root Cause: Missing Oracle Freshness Validation

A secure oracle integration should not only verify signatures. It should also validate the lifecycle of oracle data.

For example:

require(
    report.observationsTimestamp > lastUpdatedTimestamp,
    "stale oracle report"
);

This prevents old reports from replacing newer prices.

In the Prime incident, the contract trusted every verified report:

User submits report
        |
VerifierProxy validates signature
        |
Middleware stores price
        |
No freshness check
        |
Old price can overwrite current price

The signature proved that the report came from an authorized oracle source. However, it did not prove that the report was suitable for updating the current protocol state.


Attack Flow

The attacker used the vulnerable oracle update mechanism to manipulate the PRFI price.

The reported oracle price was increased to approximately:

PRFI oracle price: $0.11
Market price:      ~$0.0021

The manipulated price was around 52 times higher than the real market value.

The attacker then used this inflated collateral valuation to borrow assets from the lending protocol.

The attack steps were:

1. Acquire PRFI tokens

The attacker used a Morpho flash loan to obtain temporary liquidity. Because the WHYPE/PRFI pool had limited liquidity, the attacker was able to acquire PRFI tokens at a relatively low market cost.

2. Deposit PRFI as collateral

The attacker deposited PRFI into the lending system. The lending protocol relied on the manipulated oracle price. Instead of valuing PRFI at the real market price, the system calculated collateral value using the inflated oracle value.

3. Borrow WHYPE

The attacker borrowed approximately:

425.5 WHYPE

Worth around:

$33.4K

The borrowed amount exceeded the true economic value of the collateral.


Why Oracle Integrations Are Dangerous

Many DeFi developers assume:

“If the oracle provider signs the data, the integration is safe.”

This assumption is incomplete.

Oracle security requires multiple layers:

Oracle Provider Security
    +
Report Validation
    +
Timestamp Verification
    +
Replay Protection
    +
Economic Risk Controls

A failure in any one of these layers can create a critical vulnerability.


Security Recommendations

1. Validate report timestamps

Protocols should ensure every oracle update moves forward.

Example:

require(
    newTimestamp > previousTimestamp,
    "invalid timestamp"
);

2. Add stale data protection

Oracle data should have a maximum acceptable age.

Example:

require(
    block.timestamp - updatedAt < MAX_DELAY,
    "stale price"
);

3. Treat oracle middleware as critical infrastructure

Oracle adapters often look simple, but they directly control:

A small mistake in middleware logic can become a protocol-wide financial risk.


PandaSecurity Perspective

At PandaSecurity, we believe real Web3 security requires looking beyond common Solidity vulnerabilities.

Many serious DeFi incidents happen because of incorrect assumptions between different systems:

This incident is a good example.

The Chainlink verification process worked as expected. The vulnerability existed in the custom integration layer that accepted verified data without additional safety checks.

During security reviews, PandaSecurity focuses on:


Conclusion

The Prime PRFI exploit shows that integrating a trusted oracle service is only one part of building a secure DeFi protocol.

Oracle security depends not only on where the data comes from, but also on how protocols validate, store, and consume that data. Every oracle integration should be reviewed as financial infrastructure.

At PandaSecurity, we continue researching live Web3 protocols and helping teams identify security risks before they become costly incidents.

For private smart contract audits and security reviews, contact PandaSecurity.

Related articles

← Back to Blog