Submitted by ZanyBonzy, also found by ihtishamsudo
The rewards library holds the transfer_share_and_rewards allows for self transfer which can be used to double shares and rewards. Important to note that the function, for now is not in use by the in-scope contracts. However, I still believe its worth pointing out.
Copy and paste the below test into tests.rs. It shows how users Alice and Bob, by invoking this function, can increase their share/rewards balance.
Include a check in the function that returns if who == other.
Lambda (judge) increased severity to High
xlc (Acala) confirmed and commented:
