Skip to content
Access control Audit finding Intermediate

Governance can arbitrarily burn VeToken from any address

The governance token contract allows governance to burn tokens from any address, not just the caller's own balance. A malicious or compromised governance could destroy users' tokens.

shenwilly Follow

Originally disclosed on Code4rena

Submitted by shenwilly

Governance can burn any amount of VeToken from any address.

Unlike VE3Token which is minted when users deposit veAsset and burned when users withdraw, the burn function in the governance token VeToken.sol is unnecessary and open up the risk of malicious/compromised governance burning user’s token.

Recommended Mitigation Steps

Consider removing the function, or modify the burn function so it only allows msg.sender to burn the token:

function burn(uint256 _amount) external {
    _burn(msg.sender, _amount);
}

solvetony (veToken Finance) acknowledged and commented:

We might update readme on that case.

Alex the Entreprenerd (judge) commented:

The warden has shown how the operator, which may be the DAO or a privileged Multisig, can burn any tokens.

While the functionality is part of the system for VE3Token as the system uses it to track underlying ownership, burning of balances from arbitrary addresses is a dangerous form of admin privilege.

I’d recommend deleting the burn function.


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

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 burn function in VeToken.sol allows an authorised caller to specify any address and burn tokens from it, rather than restricting burning to the caller's own balance.

What the attacker needed

Compromised or malicious governance

The fix

The function should be removed, or modified so that it only allows the caller to burn their own tokens.

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.

A governance token is a special token that gives voting power. The contract had a function that let the people in charge (governance) destroy tokens belonging to anyone. This is dangerous because if governance is compromised, they could wipe out users' tokens.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by shenwilly

View all

12 more disclosed reports, best first.

More from veToken Finance contest

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.