Put the last card of the avalible cards array into the index of the picked card
Removes the last cards in the array
Doing these, on the deck of the picked cards , Will be a duplicate cards while on the last deck of cards, won't be this card
Impact: Manipulates or modificates the posibilities that a card has to be picked on each deck of cards.
Proof of Concept:
we have 4 card decks that look like this:
pick a random card and overwrite the last element on his index
so the array will be like this:
we can see that on the first deck we have 2x posibilities to get the 5 while on the last deck we don't have posibilities to get this.
Recommended Mitigation:
just remove the picked card
make a function to divide the total cards in some card decks based on how many cards there are.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.