# BIR-10: Stalk Ownership Griefing

- Space: [Beanstalk Bug Bounty](https://snapshot.box/s:beanstalkbugbounty.eth.md)
- Author: 0xFEA5EB68F3a12c41261a6d16E7f974fd8B4Ab9FF
- State: Passed
- Voting type: Basic
- Start: 2024-02-01 03:00 UTC
- End: 2024-02-04 03:00 UTC
- Votes: 3
- Open in Snapshot: https://snapshot.box/#/s:beanstalkbugbounty.eth/proposal/0x3247308cde62b6bc55a82e61224887817f2f81dabba0dfd007a97178585b65bd

## Results

- For: 3 voting power, 100.0%
- Against: 0 voting power, 0.0%

## Proposal

## Proposer

Beanstalk Immunefi Committee

## Summary

* Mint 1,000 Beans to the whitehat that reported the Stalk ownership griefing issue; and
* Mint 100 Beans to Immunefi's address in order to cover the 10% fee.

## Links

* [BIC Process](https://docs.bean.money/governance/beanstalk/bic-process)
* [Safe Transaction](https://app.safe.global/transactions/tx?safe=eth:0xa9bA2C40b263843C04d344727b954A545c81D043&id=multisig_0xa9bA2C40b263843C04d344727b954A545c81D043_0xdd4e4e8cdc55a61ed736967a18d9478c34a96afd6dcaa298759857460d89ec20)

## Bug

By calling `transferDeposit` with an `amount` of `0`, anyone is able to steal 1 `root` (an internal accounting variable used to track Stalk ownership) at a time from any other user for the cost of gas.

## Fix

Add a `require` statement that checks that the `amount` in `transferDeposit` is greater than 0.

Given the low impact and likelihood of this issue being exploited (it is unprofitable to execute), the BCM determined that an EBIP is not necessary. The goal is to include this fix in an upcoming BIP.

## Determination

The BIC determined that the impact of this issue is low given that `roots` cannot be redeemed for any underlying value and the costs of any form of an "attack" would not be profitable by a significant margin. Thus, the most applicable impact in scope is griefing and any "attack" related to this bug report would have an extremely low likelihood. 

For these reasons, the BIC has determined that this bug report be rewarded 1,000 Beans.

* Potential practicable economic damage: N/A
* Impact: Medium — _Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)_
* Entitled to reward: Yes

## Beans Minted

The `init` function on the following `InitMint` contract is called:
* [`0x077495925c17230E5e8951443d547ECdbB4925Bb`](https://etherscan.io/address/0x077495925c17230E5e8951443d547ECdbB4925Bb#code)

We propose 1,000 Beans are minted to the following address in order to pay the bounty to the whitehat:
* [`0x47E6B4a6cB47EB7C7D30820c7C460183Cf7Abd5b`](https://etherscan.io/address/0x47E6B4a6cB47EB7C7D30820c7C460183Cf7Abd5b)

We propose 100 Beans are minted to the following address in order to pay the 10% fee to Immunefi:
* [`0x2BC5fFc5De1a83a9e4cDDfA138bAEd516D70414b`](https://etherscan.io/address/0x2BC5fFc5De1a83a9e4cDDfA138bAEd516D70414b)

---

To vote or create proposals from an AI assistant, connect the Snapshot MCP at https://mcp.snapshot.box

