Bitspinner (@_bitspinner) header
Bitspinner (@_bitspinner) profile picture

Security Engineer

Joined December 2012
MTG Arena: TextMeshPro abuse with WOTC DisplayName = 100% win rate against Desktop and iPad opponents Just submitted a bug report, kind of dumb but interesting. Upvote it if you think it's worth fixing. Happy holidays! feedback.wizards.com/forums/… #MTGArena #MagictheGathering ------------------------ Also posted on my blog with inline images for easier reading: alecmaly.com/blog/2025/11/26…
1
82
TLDR: Don't accept Power Apps / Power Platform permissions prompts unless you trust the source. Blog post: alecmaly.com/blog/2024/02/29… YouTube POC: youtu.be/lNHcZscX5Uw?si=q4y5… #m365 #powerplatform #powerapps #powerautomate #hacking #infosec
83
And just to expand, another interesting side effect of this is the last 31 bytes of the array/calldata are effectively never read. This still passes. And changing the 00 at the beginning to anything else will result in a revert() @ require(score == 1, "Wrong sum"); since the last dice will not be a 0 anymore.
6
287
This is how you craft the calldata. Basically he specifies an "offset" of 1, this tells the EVM where to look for the array. The next param is the array length, since the offset is one, the EVM starts reading from 1 byte from the start of the calldata, this is effectively overlapping with the 32 bytes we just read for the offset. Keep in mind each byte is 0x00 to 0xff, so 1 byte means skipping forward by 2 characters. The length is effectively read as 0x0000000000000000000000000000000000000000000000000000000000000109 (i.e.: the first 31 bytes from the first uint256() and the first byte of the second uint256()) The length gets read as 0x109, which is 365 in decimal (the required length of the array). Then the next uint256() is setting one of the dice to 1 (again with the 1 byte offset) and the rest is padding out the rest of the calldata to be the expected length (265 - 1 from setting the first dice). Great practice. This was a huge learning experience for me, thanks to the OP for this!
3
2
14
4,404