Defeat 2FA token because of bad randomness - rhme2 Twistword (Misc 400)

Channel:
Subscribers:
921,000
Published on ● Video Link: https://www.youtube.com/watch?v=RGknqvbhFCY



Duration: 10:25
48,876 views
1,450


Generating random numbers on computers is not easy. And while the intended solution was really hard, the challenge had a problem with the random number generation, which allowed me to solve it.

Clarification from Andres Moreno (riscure) on the challenge:
"The "official" challenge solution involved reading the tiny Mersenne twister (tinyMT) paper, writing some equations, and using a solver. The tinyMT is tricky to initialize. Giving a proper seed is not enough. You need to provide initial state matrices with certain properties (there is a generator for this). The challenge used improper initialized matrices (zeros) that reduced the PRNG period. During tests, we found that ~12hr were needed to solve the challenge (solver time only), but we did not test the amount of entropy reduction by improper state initialization. Fortunately, the problem was not in the PRNG."

-=[ ๐Ÿ”ด Stuff I use ]=-

โ†’ Microphone:* https://geni.us/ntg3b
โ†’ Graphics tablet:* https://geni.us/wacom-intuos
โ†’ Camera#1 for streaming:* https://geni.us/sony-camera
โ†’ Lens for streaming:* https://geni.us/sony-lense
โ†’ Connect Camera#1 to PC:* https://geni.us/cam-link
โ†’ Keyboard:* https://geni.us/mech-keyboard
โ†’ Old Microphone:* https://geni.us/mic-at2020usb

US Store Front:* https://www.amazon.com/shop/liveoverflow

-=[ โค๏ธ Support ]=-

โ†’ per Video: https://www.patreon.com/join/liveoverflow
โ†’ per Month: https://www.youtube.com/channel/UClcE-kVhqyiHCcjYwcpfj9w/join

-=[ ๐Ÿ• Social ]=-

โ†’ Twitter: https://twitter.com/LiveOverflow/
โ†’ Website: https://liveoverflow.com/
โ†’ Subreddit: https://www.reddit.com/r/LiveOverflow/
โ†’ Facebook: https://www.facebook.com/LiveOverflow/

-=[ ๐Ÿ“„ P.S. ]=-

All links with "*" are affiliate links.
LiveOverflow / Security Flag GmbH is part of the Amazon Affiliate Partner Programm.

#CTF #Cryptography




Other Videos By LiveOverflow


2017-08-18Making-of LiveOverflow Videos 2017
2017-08-11Reverse Engineering PopUnder Trick for Chrome
2017-08-04Reverse Engineering Obfuscated JavaScript
2017-07-28Injection Vulnerabilities - or: How I got a free Burger
2017-07-21Bruteforce 32bit Stack Cookie. stack0: part 3 - bin 0x23
2017-07-14Identifying another exploit mitigation and find bypass. stack0: part 2 - bin 0x22
2017-07-07Buffer overflow on a modern system impossible? stack0: part 1 - bin 0x21
2017-06-30Blind GQL injection and optimised binary search - A7 ~ Gee cue elle (misc) Google CTF 2017
2017-06-23Failing easy local file inclusion challenge - mindreader (misc) Google CTF 2017
2017-06-16Hardware Power Glitch Attack (Fault Injection) - rhme2 Fiesta (FI 100)
2017-06-09Defeat 2FA token because of bad randomness - rhme2 Twistword (Misc 400)
2017-06-06[Podcast] Fuzzing FFmpeg - Paul Cher
2017-06-02Breaking AES with ChipWhisperer - Piece of scake (Side Channel Analysis 100)
2017-05-26RSA Power Analysis Side-Channel Attack - rhme2
2017-05-19Breaking ECDSA (Elliptic Curve Cryptography) - rhme2 Secure Filesystem v1.92r1 (crypto 150)
2017-05-12Reversing an unkown digital protocol with an Arduino - rhme2 Whac the mole (misc 200)
2017-05-05Blind Buffer Overflow exploitation to leak secret data - rhme2 Animals (pwn 200)
2017-05-02How (not) to ask a technical question
2017-04-28Format string exploit on an arduino - rhme2 Casino (pwn 150)
2017-04-21Recover RSA private key from public keys - rhme2 Key Server (crypto 200)
2017-04-14Defeat a stack cookie with bruteforce - rhme2 Photo manager (pwn 100)



Tags:
Live Overflow
liveoverflow
hacking tutorial
how to hack
exploit tutorial
2fa
prng
pseudo random
entropy
arduino random
seed
insecure seed
defeat random seed
mersenne twister
untwister
recover PRNG
readAnalog
bad randomness
rhme2
embedded ctf
embedded hardware
two factor authentication