-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add security policy * add security.txt to program * chore: remove unclear example of invalid bounty
- Loading branch information
Showing
5 changed files
with
61 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Important Notice | ||
**DO NOT CREATE A GITHUB ISSUE** to report a security problem. Instead, please send an email to [email protected] with a detailed description of the attack vector and security risk you have identified. | ||
| ||
# Bug Bounty Overview | ||
marginfi offers bug bounties for marginfi's on-chain program code. UI-only bugs are omitted. | ||
| ||
|Severity|Bounty| | ||
|-----------|-------------| | ||
|Critical|10% of the value of the hack, up to $500,000| | ||
|High|$10,000 to $50,000 per bug, assessed on a case by case basis| | ||
|Medium/Low|$1,000 to $5,000 per bug, assessed on a case by case basis| | ||
| ||
|
||
The severity scale is based on [Immunefi's classification system](https://immunefi.com/immunefi-vulnerability-severity-classification-system-v2-3/). | ||
Note that these are simply guidelines for the severity of the bugs. Each bug bounty submission will be evaluated on a case-by-case basis. | ||
| ||
## Submission | ||
Please email [email protected] with a detailed description of the attack vector. | ||
| ||
For critical- and high-severity bugs, we require a proof of concept reproducible on a privately deployed mainnet contract (**NOT** our official deployment). | ||
| ||
You should expect a reply within 1 business day with additional questions or next steps regarding the bug bounty. | ||
| ||
## Bug Bounty Payment | ||
Bug bounties will be paid in USDC or equivalent. | ||
| ||
## Invalid Bug Bounties | ||
A number of attacks are out of scope for the bug bounty, including but not limited to: | ||
1. Attacks that the reporter has already exploited themselves, leading to damage. | ||
2. Attacks requiring access to leaked keys/credentials. | ||
3. Attacks requiring access to privileged addresses (governance, admin). | ||
4. Incorrect data supplied by third party oracles (this does not exclude oracle manipulation/flash loan attacks). | ||
5. Lack of liquidity. | ||
6. Third party, off-chain bot errors (for instance bugs with an arbitrage bot running on the smart contracts). | ||
7. Best practice critiques. | ||
8. Sybil attacks. | ||
9. Attempted phishing or other social engineering attacks involving marginfi contributors or users | ||
10. Denial of service, or automated testing of services that generate significant traffic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -178,3 +178,15 @@ pub mod marginfi { | |
marginfi_group::unset_account_flag(ctx, flag) | ||
} | ||
} | ||
|
||
#[cfg(not(feature = "no-entrypoint"))] | ||
use solana_security_txt::security_txt; | ||
#[cfg(not(feature = "no-entrypoint"))] | ||
security_txt! { | ||
name: "marginfi v2", | ||
project_url: "https://app.marginfi.com/", | ||
contacts: "email:[email protected]", | ||
policy: "https://github.com/mrgnlabs/marginfi-v2/blob/main/SECURITY.md", | ||
preferred_languages: "en", | ||
source_code: "https://github.com/mrgnlabs/marginfi-v2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters