Boost | Firedancer v0.1

Submit a Bug

Live

27d: 14h remaining
Max Bounty
$1,000,000
Rewards Pool
$1,000,000
Vault TVL
To be determined
Started
10 July 2024
Ends
21 August 2024
Rewards Token
USDC
Triaged by Immunefi
Yes
KYC Required
Yes
nSLOC
200,000

This Boost Is Live!

$1,000,000 USD is available in rewards for finding bugs in Firedancer v0.1 codebase of about 200,000 nSLOC. KYC is required.

Firedancer v0.1 team will respond within 24 hours on weekdays to all bug reports. Any technical questions and support requests can be asked directly to Firedancer v0.1 or Immunefi in the Firedancer v0.1 Boost Discord channel.

In this contest bug fixes may be applied mid-contest. Further details are in the 'Assets In Scope' section.

When the Boost has ended Immunefi will publish an event-specific leaderboard and bug reports from the event.

Started
10 July 2024 17:00 UTC
Ends
21 August 2024 08:00 UTC

Program Overview

Firedancer is a new validator client for Solana.

  • Fast - Designed from the ground up to be fast. The concurrency model is borrowed from the low-latency trading space, and the code contains many novel high-performance reimplementations of core Solana primitives.
  • Secure -The validator's architecture allows it to run with a highly restrictive sandbox and almost no system calls.
  • Independent - Firedancer is written from scratch. This brings client diversity to the Solana network and helps it stay resilient to supply chain attacks in building tooling or dependencies.

For more information about Firedancer, please visit https://firedancer-io.github.io/firedancer/

Firedancer provides rewards in USDC on Solana, which are denominated in USD.

Rewards by Threat Level

The following reward terms are a summary; read our Firedancer v0.1 Reward Distribution Terms for the full details.

The reward pool will be entirely distributed among participants. The size depends on the bugs found:

  • If no valid bugs are found, the reward pool will be $50,000 USD
  • If no High or Critical severity bugs are found, the reward pool will be $250,000 USD
  • If one or more High severity bugs are found, the reward pool will be $500,000 USD
  • If 1 Critical severity bug is found, the reward pool will be $700,000 USD
  • If 2 Critical severity bugs are found, the reward pool will be $800,000 USD
  • If 3 or more Critical severity bugs are found, the reward pool will be $1,000,000 USD

For this Boost, duplicates are valid for a reward. Private known issues are not valid.

The directory and file listing are provided to help navigate the codebase and determine what is in scope. The ground truth for scope and impact will follow the production binary

Rewards are distributed according to the impact of the vulnerability based on the Immunefi Vulnerability Severity Classification System V2.3.

Reward Payment Terms

Payouts are handled by the Firedancer team directly and are denominated in USD. However, payments are done in USDC on Solana.

After the event has concluded and the final bug reports have been resolved, rewards will be distributed all at once based on Immunefi’s distribution formula.

Insight Rewards Payment Terms

Insight Rewards: Portion of the Rewards Pool

The "Insight" severity was introduced on Boost & Attackathon programs to recognize contributions that extend beyond identifying immediate vulnerabilities. Currently, it's not an option to select the Insight severity when submitting a report. However, our team or program will designate it accordingly if applicable. "Insights" underscores our commitment to valuing all types of contributions that contribute to a more secure environment and will always be rewarded. View more information about Insights.

Blockchain/DLT

Critical
Level
Portion of the Reward Pool
Payout
PoC Required
High
Level
Portion of the Reward Pool
Payout
PoC Required
Medium
Level
Portion of the Reward Pool
Payout
PoC Required

All categories *

Insight
Level
Portion of the Reward Pool
Payout

Assets in scope

The Firedancer validator builds as a single binary: fdctl. All code and functionality linked and reachable by the main function of this binary is in scope, including from the primary run command, but also configure, monitor, and others. Bugs in linked but unreachable code (for example: cryptography implementations that are behind a development flag or library utility code that is never called) are in scope but are not exploitable and will be considered informational (aka insight reports).

The Firedancer repository contains code for two validators:

  • Firedancer v0.1, lovingly nicknamed “Frankendancer”, a split between Firedancer and the existing Agave validator written in Rust
  • A full C-only Firedancer completely replacing the existing Agave validator.

The full Firedancer code is behind a development flag, and findings in code that is only reachable in full Firedancer will be considered informational (aka insight reports).

The Firedancer v0.1 validator interfaces with the existing Agave validator written in Rust via an FFI interface. This FFI interface and the modifications to Agave to support such FFI are in scope, but bugs in the Agave validator itself that would impact existing Solana validators should be reported to the Agave bug bounty and are not considered in scope for the contest.

The directory and file listing are provided to help navigate the codebase and determine what is in scope. The ground truth for scope and impact will follow the production binary.

The Firedancer v0.1 sandbox (and machine model) are explicitly in-scope. This means that a researcher could assume a tile’s already been breached, and any findings downstream of that “contrived” tile breach are valid. As an example: Assume the “Net” tile has been breached, such that the researcher has full RCE within the sandbox of the Net tile. If the attacker is able to cause malicious effects in any of the “downstream” tiles or on the system itself, these findings would also be in scope.

Mid-Contest Code Updates

In this contest bug fixes may be applied mid-contest.

The project is to keep changes private as far as possible. When changes need to be made public, then the changelog will be updated here & in the Firedancer Boost Discord channel. Publicly fixed bugs are invalid and the scope is updated to the new code.

All bug reports before the fix was public will earn a reward. All bug reports after are invalid. If a new bug is introduced by their fix then it is valid for a reward.

Mid-Contest Changelog

Asset in scope link updated from https://github.com/firedancer-io/firedancer/tree/v0.106.11814 to https://github.com/firedancer-io/firedancer/tree/e60d9a6206efaceac65a5a2c3a9e387a79d1d096

Asset Accuracy Assurance

Bugs found on assets incorrectly listed in-scope will be considered valid and be rewarded.

Private Known Issues Reward Policy

Private known issues, meaning known issues that were not publicly disclosed, are not valid for a reward.

Primacy of Impact vs Primacy of Rules

Firedancer adheres to the Primacy of Rules, meaning the whole bug bounty program is run strictly under the terms and conditions stated on this page.

KYC Requirement

Immunefi will be requesting KYC information to pay for successful bug submissions. The following information will be required:

  • Full name
  • Date of birth
  • Proof of address (either a redacted bank statement with the address or a recent utility bill)
  • Copy of Passport or other Government ID

Eligibility Criteria

Security researchers who wish to participate must adhere to the rules of engagement outlined in this program and cannot be:

  • On OFAC SDN list
  • Official contributor, both past or present
  • Employees and/or individuals closely associated with the project
  • Employees of Solana Foundation or any other Solana client project
  • Security auditors who directly or indirectly participated in the audit review

Responsible Publication

Whitehats may publish their bug reports after they have been fixed & paid or closed as invalid, with the following exceptions:

  • Bug reports in mediation may not be published until mediation has concluded and the bug report is resolved.

Immunefi may publish bug reports submitted to this program and a leaderboard of the participants and their earnings.

Feasibility Limitations

The project may receive valid reports (the bug and attack vector are real) and cite assets and impacts that are in scope, but there may be obstacles or barriers to executing the attack in the real world. In other words, there is a question about how feasible the attack really is. Conversely, there may also be mitigation measures that projects can take to prevent the bug's impact, which are not feasible or would require unconventional action and, hence, should not be used as reasons for downgrading a bug's severity.

Therefore, Immunefi has developed a set of feasibility limitation standards that, by default, state what security researchers and projects can or cannot cite when reviewing a bug report.

Immunefi Standard Badge

By adhering to Immunefi’s best practice recommendations, Firedancer has satisfied the requirements for the Immunefi Standard Badge.

Impacts in scope

Only the following impacts are accepted within this bug bounty program. All other impacts are not considered as in-scope, even if they affect something in the assets in scope table.

Blockchain/DLT

  • Any sandbox escape
    Critical
    Impact
  • Any bug leading to loss of funds or acceptance of forged / invalid signatures
    Critical
    Impact
  • Key compromise/exfiltration exploit chain
    Critical
    Impact
  • Process to process RCE between sandboxed tiles
    High
    Impact
  • Any bug leading Firedancer v0.1 to produce an invalid block or skip its leader slot
    Medium
    Impact
  • Consensus issues causing Firedancer v0.1 validators to fork
    Medium
    Impact
  • Liveness issues that cause Firedancer v0.1 validators to crash or be unavailable
    Medium
    Impact

Proof of Concept (PoC) Requirements

A PoC, demonstrating the bug's impact, is required for this program and has to comply with the Immunefi PoC Guidelines and Rules.

Whitehat Educational Resources & Technical Info

Is this an upgrade of an existing system? If so, which? And what are the main differences?

This is a complete ground-up implementation of a Solana protocol client. It was based on the Agave client (https://github.com/anza-xyz/agave), which is written in Rust, but this implementation is written from scratch in C.

Where do you suspect there may be bugs? Valuable aspects of this question are:

Which parts of the code are you most concerned about?

What attack vectors are you most concerned about?

  • Any attack vector that results in the loss of funds
  • Remote Code Execution, leading to compromise of validator key material or arbitrary transaction signing
  • Denial of Service, leading to degradation or loss of service availability
  • Global Denial of Service, leading to consensus failure, excessive forking, or chain halts

Which part(s) of the system do you want whitehats to attempt to break the most?

  • Signature Verification Tile (Denial of Service / RCE / Arbitrary Signing)
  • Network and QUIC Tiles (Denial of Service / RCE)
  • Sandbox Escape or Violation (Abusing the sandbox or violation of sandbox policies for unexpected outcomes)
  • Inconsistencies between Firedancer / Agave behavior that lead to unsafe outcomes.

Are there any assumed invariants that you want whitehats to attempt to break?

  • If any tile is compromised, the sandbox should contain its effects on that tile. It should not allow the compromise to significantly impact other tiles and/or the system.

Would you consider any bug report requiring their involvement to be out of scope as long as they operate within the privileges attributed to them?

  • Any bug reports that assume a pre-existing compromise of the validator operating system, applications, or any administrative control over the operating system.
  • Any bug dependent on exploiting vulnerabilities in the agave client codebase.
  • Any bug reports that require social engineering or physical attack on a person or the system.
  • Any bug reports that assume a malicious operator or the like.
  • Any bug that is not exploitable on the latest stable and supported Linux distributions (Ubuntu, Debian, Fedora, or Red Hat Distributions).
  • Any bug that is not focused on x86 architecture.
  • Any bug that is not exploitable on the latest stable and supported GCC versions.
  • Any bug that has an initial vector of compromise in a dependency.
  • Any bug in a dependency that is not exclusive to Firedancer should instead be reported to the upstream repo. (For example, If you find a bug in Agave that also affects Agave, you should report it to the Agave bug bounty program instead).

What external dependencies are there?

Build Dependencies: perl, autoconf, gettext, automake, autopoint, flex, bison, build-essential, gcc-multilib, protobuf-compiler, llvm, lcov, libgmp-dev, cmake.

Where might whitehats confuse out-of-scope code to be in-scope?

Code exists in the repository, which is in development but not yet executed by the validator, while it currently leverages the Agave client for these functions - for example, src/flamenco/runtime/, src/ballet/sbpf/. Attempts have been made above to make this very clear in the file dump listing at the bottom of the scope table, but there may be some minor exceptions that we can clear up if there are questions.

Are there any unusual points about your protocol that may confuse whitehats?

TLS stack handwritten only contains the parts absolutely necessary for Firedancer

What is the test suite setup information?

  • GitHub Actions: https://github.com/firedancer-io/firedancer/tree/main/.github/workflows
  • Additionally, M1 fuzzing harnesses do exist in the main repo, you can find them with this command: find . -type f -name 'fuzz_.c' -path './src/'
  • Fuzzing harnesses can be built with a modern Clang compiler (recommended: 17): MACHINE=linux_clang_x86_64 EXTRAS="asan fuzz" make -j fuzz-test

How to build and run the node?

https://firedancer-io.github.io/firedancer/guide/getting-started.html

Public Disclosure of 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.

Previous Audits

Firedancer v0.1 completed audit reports can be found at https://github.com/firedancer-io/audits. Any unfixed vulnerabilities mentioned in these reports are not eligible for a reward.

Out of Scope & Rules

These impacts are out of scope for this bug bounty program.

All Categories:

  • Impacts requiring attacks that the reporter has already exploited themselves, leading to damage
  • Impacts caused by attacks requiring access to leaked keys/credentials
  • Impacts caused by attacks requiring access to privileged addresses (governance, strategist) except in such cases where the contracts are intended to have no privileged access to functions that make the attack possible
  • Impacts relying on attacks involving the depegging of an external stablecoin where the attacker does not directly cause the depegging due to a bug in code
  • Mentions of secrets, access tokens, API keys, private keys, etc. in Github will be considered out of scope without proof that they are in-use in production
  • Best practice recommendations
  • Feature requests
  • Impacts on test files and configuration files unless stated otherwise in the bug bounty program
  • The directory and file listing are provided to help navigate the codebase and determine what is in scope. The ground truth for scope and impact will follow the production binary

Websites and Apps

  • Theoretical impacts without any proof or demonstration
  • Impacts involving attacks requiring physical access to the victim device
  • Impacts involving attacks requiring access to the local network of the victim
  • Reflected plain text injection (e.g. url parameters, path, etc.)
    • This does not exclude reflected HTML injection with or without JavaScript
    • This does not exclude persistent plain text injection
  • Any impacts involving self-XSS
  • Captcha bypass using OCR without impact demonstration
  • CSRF with no state modifying security impact (e.g. logout CSRF)
  • Impacts related to missing HTTP Security Headers (such as X-FRAME-OPTIONS) or cookie security flags (such as “httponly”) without demonstration of impact
  • Server-side non-confidential information disclosure, such as IPs, server names, and most stack traces
  • Impacts causing only the enumeration or confirmation of the existence of users or tenants
  • Impacts caused by vulnerabilities requiring un-prompted, in-app user actions that are not part of the normal app workflows
  • Lack of SSL/TLS best practices
  • Impacts that only require DDoS
  • UX and UI impacts that do not materially disrupt use of the platform
  • Impacts primarily caused by browser/plugin defects
  • Leakage of non sensitive API keys (e.g. Etherscan, Infura, Alchemy, etc.)
  • Any vulnerability exploit requiring browser bugs for exploitation (e.g. CSP bypass)
  • SPF/DMARC misconfigured records)
  • Missing HTTP Headers without demonstrated impact
  • Automated scanner reports without demonstrated impact
  • UI/UX best practice recommendations
  • Non-future-proof NFT rendering

Blockchain/DLT & Smart Contract Specific:

  • Incorrect data supplied by third party oracles
    • Not to exclude oracle manipulation/flash loan attacks
  • Impacts requiring basic economic and governance attacks (e.g. 51% attack)
  • Lack of liquidity impacts
  • Impacts from Sybil attacks
  • Impacts involving centralization risks

Prohibited Activities:

  • Any testing on mainnet or public testnet deployed code; all testing should be done on local-forks of either public testnet or mainnet
  • Any testing with pricing oracles or third-party smart contracts
  • Attempting phishing or other social engineering attacks against our employees and/or customers
  • Any testing with third-party systems and applications (e.g. browser extensions) as well as websites (e.g. SSO providers, advertising networks)
  • Any denial of service attacks that are executed against project assets
  • Automated testing of services that generates significant amounts of traffic
  • Public disclosure of an unpatched vulnerability in an embargoed bounty