VYPR
Unrated severityNVD Advisory· Published Sep 18, 2018· Updated Aug 5, 2024

CVE-2018-17111

CVE-2018-17111

Description

The onlyOwner modifier of a smart contract implementation for Coinlancer (CL), an Ethereum ERC20 token, has a potential access control vulnerability. All contract users can access functions that use this onlyOwner modifier, because the comparison between msg.sender and owner is incorrect.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Coinlancer (CL) ERC20 token contract uses a flawed `onlyOwner` modifier that allows any user to call owner-restricted functions.

Vulnerability

The Coinlancer (CL) Ethereum ERC20 token smart contract contains an access control flaw in the onlyOwner modifier [1]. The modifier incorrectly implements the ownership check: require(msg.sender != owner); instead of require(msg.sender == owner);. This logic error causes the require statement to fail for the legitimate owner and pass for every other address, effectively making all owner-restricted functions accessible to any contract user. The vulnerable code is present in the contract as deployed on the Ethereum mainnet [1].

Exploitation

No authentication or prior access is required; any Ethereum address can call functions protected by the onlyOwner modifier. However, the available reference notes that the faulty modifier is not used in the current contract, so the bug is not directly exploitable in the deployed token [1]. The dangerous code pattern exists and could be triggered if the modifier were applied to any function in a future upgrade or code fork.

Impact

If the onlyOwner modifier were applied to sensitive functions (e.g., minting, pausing, transferring ownership), an attacker could invoke those functions, gaining unauthorized control over the contract. Potential impacts include arbitrary token minting, fund theft, or contract hijack. Since the modifier is unused in the current deployment, there is no immediate loss of funds or privileges [1].

Mitigation

No patched version has been released by the Coinlancer project. The developers must replace the faulty require statement with require(msg.sender == owner); and re-deploy the contract. As of the publication date (2018-09-18), no fix or audit has been confirmed [1]. Users and exchanges should monitor the contract for any changes that might apply the flawed modifier to owner functions.

AI Insight generated on May 26, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected products

1

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

1

News mentions

0

No linked articles in our index yet.