Raisebox Faucet

First Flight #50
Beginner FriendlySolidity
100 EXP
Submission Details
Impact: low
Likelihood: high

SPDX License Typo Makes Contract Unlicensed

Author Revealed upon completion

Missing 'e' in SPDX-Lincense-Identifier voids MIT license, creating legal ambiguity

Description

SPDX-Lincense-Identifier: MIT → missing 'e'. No valid SPDX license detected. Contract = unlicensed/proprietary.

@> // SPDX-Lincense-Identifier: MIT // BROKEN

Risk

Likelihood: High (Every deploy)

Impact: Low (Legal/tooling issue, no fund risk)

Proof of Concept

  • Run the following in bash:

forge inspect RaiseBoxFaucet SPDX-License-Identifier
  • logs:

error: invalid value 'SPDX-License-Identifier' for '<FIELD>'
[possible values: abi, bytecode, deployedBytecode, assembly, legacyAssembly, assemblyOptimized, methodIdentifiers, gasEstimates, storageLayout, devdoc, ir, irOptimized, metadata, userdoc, ewasm, errors, events, standardJso

Recommended Mitigation

Just make this change in both the contract and the script!!

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

Support

FAQs

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