CVE-2018-17111

The onlyOwner modifier of a smart contract implementation for Coinlancer (CL), an Ethereum ERC20 token, has a potential access control vulnerability

published September 18, 2018

CVSS
โ€”
EPSS
1%
Percentile
68.0
In the wild
Unconfirmed
What it is

โš ๏ธ A sneaky access control flaw lurks within the Coinlancer smart contract! The onlyOwner modifier is letting all users access functions intended solely for the owner. ๐Ÿ˜ฑ Think of it like a VIP room at a concert where only a select few should have access, but someone left the door wide open for everyone to stroll right in! ๐ŸŽค This vulnerability could allow any user to execute critical functions meant only for the contract's owner, potentially leading to unauthorized control and exploitation of the token. Imagine the chaos if anyone could change the concert's headlining act! ๐ŸŽช

Put simply

Think of it like a VIP room at a concert where only a select few should have access, but someone left the door wide open for everyone to stroll right in! ๐ŸŽค The onlyOwner modifier in the Coinlancer smart contract has a flaw in how it compares msg.sender to the owner, failing to enforce proper access control for sensitive functions.

What to do

This vulnerability could allow any user to execute critical functions meant only for the contract's owner, potentially leading to unauthorized control and exploitation of the token. Imagine the chaos if anyone could change the concert's headlining act! ๐ŸŽช To mitigate this issue, developers should review the access control logic of the smart contract and ensure that the onlyOwner modifier correctly validates the sender's address. Consider implementing additional checks or upgrading to a version that resolves this bug. Don't worry! With a little review and correction, you can lock this down and keep your smart contracts secure! ๐Ÿ›ก๏ธ

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01205 ยท 68.0th percentile
Published
2018-09-18T21:00Z
EPSS history
Timeline
  • 18 SEP 21:00Z
    The onlyOwner modifier of a smart contract implementation for Coinlancer (CL), an Ethereum ERC20 token, has a potential access control vulnerability
    cvelistv5