Skip to content

code-423n4/legion-bug-bounty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Legion Bug Bounty

Risk Score Payout
Critical Up to USD $75,000
High USD $10,000

Background on Legion

What Is Legion?

Legion connects investors and contributors with promising crypto projects, enabling compliant and incentive-aligned investments before and after Token Generation Events (TGEs). Our platform supports both pre-TGE fundraising and token launches, streamlining capital raising and token distribution.

How Does It Work?

Legion facilitates ERC20 token sales — Fixed Price, Sealed Bid Auction, and Pre-Liquid (Approved & Open Application), ERC20 capital raises and ERC20 token distribution — using the EIP-1167 Minimal Proxy Standard Clone Pattern for deployment and Merkle Proofs + Signatures for eligibility verification.

Legion’s smart contracts are designed to work seamlessly with our backend for off-chain calculations, such as sale result processing, ensuring efficiency and compliance. While this introduces dependency, it enables complex operations not feasible on-chain alone.

Further Technical Resources & Links

Scope & Severity Criteria

Severity level Impact: High Impact: Medium Impact: Low
Likelihood: High Critical High -
Likelihood: Medium High - -
Likelihood: Low - - -

Smart Contracts in Scope

Source: GitHub

Name (Address Link) Repo
LegionBouncer https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/access/LegionBouncer.sol
LegionReferrerFeeDistributor https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/distribution/LegionReferrerFeeDistributor.sol
LegionTokenDistributor https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/distribution/LegionTokenDistributor.sol
LegionCapitalRaiseFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionCapitalRaiseFactory.sol
LegionFixedPriceSaleFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionFixedPriceSaleFactory.sol
LegionPreLiquidApprovedSaleFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionPreLiquidApprovedSaleFactory.sol
LegionPreLiquidOpenApplicationSaleFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionPreLiquidOpenApplicationSaleFactory.sol
LegionSealedBidAuctionSaleFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionSealedBidAuctionSaleFactory.sol
LegionTokenDistributorFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionTokenDistributorFactory.sol
LegionVestingFactory https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/factories/LegionVestingFactory.sol
LegionCapitalRaise https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/raise/LegionCapitalRaise.sol
LegionAddressRegistry https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/registries/LegionAddressRegistry.sol
LegionFixedPriceSale https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/sales/LegionFixedPriceSale.sol
LegionPreLiquidApprovedSale https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/sales/LegionPreLiquidApprovedSale.sol
LegionPreLiquidOpenApplicationSale https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/sales/LegionPreLiquidOpenApplicationSale.sol
LegionSealedBidAuctionSale https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/sales/LegionSealedBidAuctionSale.sol
LegionLinearEpochVesting https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/vesting/LegionLinearEpochVesting.sol
LegionLinearVesting https://github.com/Legion-Team/legion-protocol-contracts/blob/master/src/vesting/LegionLinearVesting.sol

Out-of-Scope

Known Issues

Bug reports covering previously-discovered bugs (listed below) are not eligible for a reward within this program. This includes known issues that the project is aware of but has consciously decided not to “fix”, necessary code changes, or any implemented operational mitigating procedures that can lessen potential risk. Every issue opened in the repo, closed PRs, previous contests and audits are out of scope.

The following are known issues and therefore are out of scope:

  • Centralization risks
  • Lack of support for fee-on-transfer and rebasing tokens
  • Project owners are not required to provide ask tokens to pre-liquid sales before withdrawing capital
  • Signature reuse when investing (users are allowed to invest multiple times in the same sale, using the same signature)
  • Refunding is allowed prior to official sale end, technically allowing users more time for refund than the specified refundPeriod

Previous Audits

Any previously reported vulnerabilities mentioned in past audit reports are not eligible for a reward.

Legion's previous audits can be found below: Audits

Specific Types of Issues

An example of that would be the following:

  • Code outside the master branch.
  • Anything in test, script, src/mocks, src/lib, src/utils, or src/interfaces folders.
  • Bugs already reported by others.
  • Known issues tied to third-party contracts built on top of Legion.
  • Problems in external systems or contracts interacting with us.
  • Testnet deployments — no points for sandbox wins.

And these don’t count either:

  • Incorrect input data supplied by users.
  • Missing input data validation.
  • MEV / Frontrunning attacks.
  • Breakdowns in outside services.
  • Compromised private keys.
  • Phishing schemes or fake sites.
  • DDoS onslaughts.
  • Social manipulation tricks.
  • UI bugs (like misleading clicks).
  • Spam floods.
  • Automated tool outputs (e.g., CI/CD scans).

Additional Context

Trusted Roles

  • Legion - Legion's admin access and interactions are controlled through the LegionBouncer contract. A BROADCASTER role is granted to a AWS Broadcaster Wallet, responsible for executing function calls requiring Legion's access privileges.
  • Project Admin - Projects have the ability to withdraw raised capital and supply tokens for distribution.

Miscellaneous

Employees of Legion, contractors and their family members are ineligible for bounties.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5