Raisebox Faucet

First Flight #50
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Impact: low
Likelihood: low
Invalid

Typo in SPDX License Identifier

Root + Impact

Description

The Solidity source file begins with an SPDX license identifier, a standard practice to declare the contract's licensing terms. The typo "Lincense" (instead of "License") renders the identifier invalid according to the SPDX specification (https://spdx.org/licenses/). While the contract executes normally, tools relying on accurate SPDX tags—such as Etherscan for source verification or automated license scanners—may fail to recognize the intended MIT license. This could require manual verification or delay deployment processes, and in rare cases, create uncertainty regarding intellectual property rights under the MIT terms.

// @> Root cause in the codebase
//SPDX-Lincense-Identifier: MIT // @> Typo in "License" should be corrected

Risk

Likelihood:

  • Low: The typo is easily detectable during code review or deployment preparation and can be quickly fixed.

  • More likely in automated deployments without pre-verification checks.

Impact:

  • Low: No runtime or security impact; primarily affects verification workflows and documentation clarity.

  • Potential for manual effort to resolve verification issues or legal clarification if disputed.

Proof of Concept

Attempt to verify the contract on Etherscan with the typo present, or use a tool like Hardhat to compile and check for warnings. The following steps demonstrate the issue:

  1. Deploy the contract with the typo using Foundry:

    forge script script/DeployRaiseboxContract.s.sol --rpc-url <your-rpc> --broadcast
  2. Try to verify on Etherscan with the source code containing the typo.

  3. Observe a parsing error or failure to recognize the license.

Explanation

  • Setup: Deploy with the incorrect identifier.

  • Issue Demonstration: Verification fails or requires manual correction due to the invalid SPDX tag.

  • Result: The process highlights the need for a corrected identifier, confirming the typo’s impact on tooling.

  • No runtime test is needed, as the issue is static and tooling-related.

Recommended Mitigation

Correct the typo in the SPDX identifier to ensure proper license recognition and compatibility with verification tools.

- //SPDX-Lincense-Identifier: MIT
+ //SPDX-License-Identifier: MIT
Updates

Lead Judging Commences

inallhonesty Lead Judge 10 days ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.