Skip to content
Audit finding Beginner

Contracts of the codebase will not strictly compliant with the ERC-1504

The smart contracts are not strictly compliant with ERC-1504 as claimed in the README, because they use OpenZeppelin upgradeable contracts that lack a separate data contract. This breaks the stated compliance but no direct security impact is described.

0xnbvc Follow with Atharv, AuditorPraise and 5 others

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2024-10-axion-judging/issues/155

The protocol has acknowledged this issue.

Found by

0xnbvc, Atharv, AuditorPraise, HackTrace, Kirkeelee, dany.armstrong90, isagixyz, pkqs90

Summary

Contracts of the codebase isn't strictly compliant with the ERC-1504. This breaks the readme.

Root Cause

As per readme:

Is the codebase expected to comply with any EIPs? Can there be/are there any deviations from the specification?

Strictly compliant: ERC-1504: Upgradable Smart Contract

But the contracts of the codebase uses openzepplin upgradable contracts as base contract which are not compliant with ERC-1504. As per ERC-1504, the upgradable contract should consists of have handler contract, data contract and optionally the upgrader contract. But the contracts of the codebase are not compliant with ERC-1504 because they has no data contract and has data inside the handler contract.

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

Break the readme.

PoC

No response

Mitigation

Make the contracts strictly compliant with ERC-1504.

The original report as published on Sherlock, by 0xnbvc. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The contracts use OpenZeppelin upgradeable contracts as a base, which do not implement the separate data contract required by ERC-1504.

Impact

The README's claim of strict ERC-1504 compliance is broken, but no direct security impact is described.

What the attacker needed

None

The fix

The contracts should be made strictly compliant with ERC-1504, for example by introducing a separate data contract.

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 report has not been written yet. The Original tab links to the source.

ERC-1504 is a standard for upgradeable smart contracts that suggests separating storage (data contract) from logic (handler contract). The project claimed to follow this standard but actually used a different upgradeable pattern from OpenZeppelin, which keeps data inside the logic contract. This means the code does not match the documentation, but no attacker gain is shown.

More from AXION

View all

The newest disclosed reports for this program.

Similar reports

Same bug class and techniques, clearest first.