← Tutti i video

CNS Lab 02 - Breaking PRNGs for Fun and Profit Part 2/2

Guarda su YouTube → 1:20:02 8 ottobre 2022
Didattica

Descrizione

Second laboratory for the Computer Network Security (CNS) course at Tor Vergata during scholar year 2022-2023. In the laboratory we introduced a new PRNG called the Mersenne Twister, which is currently implemented in various popular programming languages such as the python language. We have analyzed the inner workings of the Mersenne Twister at an interface level, without delving too much into the specific mathematical formulation. We then showed an attack to a custom web application which internally used the python Random.random() to generate password reset codes. The attack consisted in obtaining 624 consecutive direct outputs from the PRNG. From those output, an attacker could syncronize a local copy of the Mersenne Twister to the one running on the server. This opened up the possibility for predicting future outputs, as well as for going into the past and discovering the reset codes for old users registered to the site. With this knowledge, an attacker could then reset the password of each user registered in the system to an arbitrary password choosen by the attacker. Also, I forgot to mention it in the lecture, but an inspiration for the "black-box technique" was this video: https://www.youtube.com/watch?v=RDzsrmMl48I. ---------------------------------------------------- LECTURE MATERIAL: - https://teaching.leonardotamiano.xyz/cns/labs/lab_02/ ---------------------------------------------------- TIMESTAMPS: 00:00:00 Previously 00:03:07 The black-box technique 00:07:40 Interfaces and Implementations 00:10:40 A Third PRNG: Mersenne Twister 00:14:00 State and Period of the Mersenne Twister 00:20:40 Initialization Step 00:23:40 State Update Step 00:27:35 Output Generation Step 00:31:00 Overview so far 00:33:00 Attacking the Mersenne Twister 00:44:55 How is it actually implemented? 00:50:00 Introducing WebApp for Example 00:55:40 Exploring WebApp 00:59:00 Analyzing the vulnerability 01:02:30 Exploting the vulnerability 01:09:40 Running the attack 01:11:32 Introducing CSPRNGs

Commenti 6

I commenti vengono da YouTube e sono aggiornati periodicamente.

  1. @trinithpj3236 9 ottobre 2022
    Very interesting lecture man,keep it up!!!!
  2. @LucaCanali 8 ottobre 2022
    un ovvio TOP !!!
  3. @alessandrostraziota456 10 ottobre 2022
    Io c'ero !!
    1 risposta
    1. @esadecimale Autore 10 ottobre 2022
      git commit -m “è vero”
  4. @rahulkumar-ux1ek 21 aprile 2023
    Can i get the code files
    1 risposta
    1. @esadecimale Autore 21 aprile 2023 1
      sure, feel free to download the code snippet in the following link: https://teaching.leonardotamiano.xyz/class-material/cns/prngs_02/code.zip