Unsecured Wallet Voting Configuration Allows Unauthorized Vote Manipulation Despite Password Protection
The wallet software stores voting configuration in a plain file outside the encrypted wallet, so anyone with local file-system access can edit it and change votes for wallets whose passwords they do not know. The altered votes are then broadcast by the wallets without any password prompt.
- Disclosed after under an hour
#40794 [W&A-Insight] Unsecured Wallet Voting Configuration Allows Unauthorized Vote Manipulation Des
Submitted on Mar 4th 2025 at 00:15:44 UTC by @jovi for IOP | Zano
- Report ID: #40794
- Report Type: Websites and Applications
- Report severity: Insight
- Target: https://github.com/immunefi-team/zano-iop/blob/main/src/wallet/wallets\\_manager.cpp
- Impacts:
- Taking and/modifying authenticated actions (with or without blockchain state interaction) on behalf of other users without any interaction by that user, such as:
- Changing registration information
- Commenting
- Voting
- Making trades
- Withdrawals, etc.
Description
Summary
On a machine running multiple locally accessed wallets, an attacker without the wallet password can still change the wallet's voting configuration. This is unintended since each wallet is password-protected, and such changes should be impossible without the correct password.
Vulnerability Details
Location
In wallets_manager.cpp, the wallet software sets a single votes_config_path (for example, "voting.json") that is not protected by any wallet password checks.
Description
- Cause: The wallet’s votes are stored outside the encrypted wallet file and loaded at runtime without further password enforcement.
- Expected Behavior: Changing a wallet’s votes should require its password.
- Observed Behavior: A local user with file-system access can edit this config file and cause wallet's they don't own the password to cast new or altered votes, even though they have never provided the wallet password.
Code Snippet
void wallets_manager::init_wallet_entry(wallet_vs_options& wo, uint64_t id)
{
...
// Sets an unprotected config path for votes
wo.w->get()->set_votes_config_path(m_data_dir + "/" + CURRENCY_VOTING_CONFIG_DEFAULT_FILENAME);
...
}
No subsequent checks enforce the wallet’s password when reading or applying that file.
Impact
An unauthorized individual can override or add votes in a wallet they do not own, compromising user autonomy in on-chain decision or governance processes.
Proof of Concept
- The attacker has local file-system access on a system hosting multiple wallets.
- They locate the shared “voting.json” file (or its variant).
- They modify it with their desired votes.
- All the local wallets subsequently broadcast these changes in newly minted blocks or normal transactions—no password prompts occur.
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
Likely the votes configuration is stored in a shared file outside the encrypted wallet and loaded at runtime without any password check.
Impact
An unauthorised local user could override or add votes in wallets they do not own, undermining user control over on-chain governance decisions.
What the attacker needed
Local file-system access; multiple wallets on the same machine
The fix
Votes should be stored inside the encrypted wallet or otherwise require the wallet password before being read or applied.
How it was found
- Get local file-system access on a machine hosting several wallets.
- Find the shared voting configuration file.
- Edit the file to set the votes you want.
- The local wallets then broadcast the changed votes without asking for a password.
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 wallet is software that holds your keys and lets you send or vote. Normally a password protects it. Here the list of votes is kept in a separate plain file that the password does not cover, so anyone who can reach that file on the computer can rewrite the votes and the wallet will send them out as if the owner had chosen them.
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.