Wednesday, January 24, 2024

ASIS CTF Quals 2015 - Sawthis Writeup - Srand Remote Prediction


The remote service ask for a name, if you send more than 64 bytes, a memory leak happens.
The buffer next to the name's is the first random value used to init the srand()


If we get this value, and set our local srand([leaked] ^ [luckyNumber]) we will be able to predict the following randoms and win the game, but we have to see few details more ;)

The function used to read the input until the byte \n appears, but also up to 64 bytes, if we trigger this second condition there is not 0x00 and the print shows the random buffer :)

The nickname buffer:



The seed buffer:



So here it is clear, but let's see that the random values are computed with several gpu instructions which are decompiled incorrectly:







We tried to predict the random and aply the gpu divisions without luck :(



There was a missing detail in this predcitor, but there are always other creative ways to do the things.
We use the local software as a predictor, we inject the leaked seed on the local binary of the remote server and got a perfect syncronization, predicting the remote random values:




The process is a bit ugly becouse we combined automated process of leak exctraction and socket interactive mode, with the manual gdb macro.




The macro:



















More info


  1. Hack Apps
  2. Hack Apps
  3. Hack And Tools
  4. Pentest Tools Website Vulnerability
  5. Pentest Tools Windows
  6. Hack Website Online Tool
  7. New Hacker Tools
  8. Pentest Tools
  9. Hacker Tools For Ios
  10. Underground Hacker Sites
  11. Hacking Tools Mac
  12. Hacking Tools Usb
  13. Pentest Tools Open Source
  14. Best Hacking Tools 2020
  15. Hacking Tools Online
  16. Hack Tools For Mac
  17. Pentest Tools Github
  18. Hacking Tools Hardware
  19. Hacks And Tools
  20. Hacker
  21. Pentest Tools Url Fuzzer
  22. Hackrf Tools
  23. Pentest Tools Apk
  24. Hack Tools For Games
  25. Pentest Tools Kali Linux
  26. Hacking Tools For Beginners
  27. Hack Tools Github
  28. Hackers Toolbox
  29. Install Pentest Tools Ubuntu
  30. Nsa Hack Tools Download
  31. Easy Hack Tools
  32. New Hack Tools
  33. Pentest Tools Bluekeep
  34. Hacker Tools List
  35. Ethical Hacker Tools
  36. Pentest Tools For Android
  37. Black Hat Hacker Tools
  38. Pentest Tools Download
  39. Pentest Tools Framework
  40. Tools 4 Hack
  41. Hacking Tools For Beginners
  42. Pentest Tools Framework
  43. Hak5 Tools
  44. Pentest Automation Tools
  45. Pentest Tools Find Subdomains
  46. Nsa Hacker Tools
  47. Hack Tool Apk
  48. Pentest Tools List
  49. Pentest Tools Kali Linux
  50. Hack Tools
  51. Easy Hack Tools
  52. Hacking Tools For Windows Free Download
  53. Hacking App
  54. Hacker Tools Software
  55. Hacker Tools Mac
  56. Pentest Tools Website Vulnerability
  57. Pentest Tools Linux
  58. Pentest Tools Alternative
  59. Pentest Recon Tools
  60. Hack Tools For Ubuntu
  61. Hacker Tools Apk Download
  62. Hacking Tools Name
  63. Hacker Security Tools
  64. Pentest Automation Tools
  65. Best Pentesting Tools 2018
  66. Best Hacking Tools 2019
  67. Hacking Tools And Software
  68. Hacking Tools Free Download

No comments:

Post a Comment