domingo, 28 de enero de 2024

Vsftpd Backdoor - Ekoparty Prectf - Amn3S1A Team

It's a 32bits elf binary of some version of vsftpd, where it have been added a backdoor, they don't specify is an authentication backdoor, a special command or other stuff.

I started looking for something weird on the authentication routines, but I didn't found anything significant in a brief period of time, so I decided to do a bindiff, that was the key for locating the backdoor quickly. I do a quick diff of the strings with the command "strings bin | sort -u" and "vimdiff" and noticed that the backdoored binary has the symbol "execl" which is weird because is a call for executing elfs, don't needed for a ftp service, and weird that the compiled binary doesn't has that symbol.





Looking the xrefs of "execl" on IDA I found that code that is a clear backdoor, it create a socket, bind a port and duplicate the stdin, stdout and stderr to the socket and use the execl:



There are one xrefs to this function, the function that decides when trigger that is that kind of systems equations decision:


The backdoor was not on the authentication, it was a special command to trigger the backdoor, which is obfuscated on that systems equation, it was no needed to use a z3 equation solver because is a simple one and I did it by hand.



The equation:
cmd[0] = 69
cmd[1] = 78
cmd[1] + cmd[2] = 154
cmd[2] + cmd[3] = 202
cmd[3] + cmd[4] = 241
cmd[4] + cmd[5] = 233
cmd[5] + cmd[6] = 217
cmd[6] + cmd[7] = 218
cmd[7] + cmd[8] = 228
cmd[8] + cmd[9] = 212
cmd[9] + cmd[10] = 195
cmd[10] + cmd[11] = 195
cmd[11] + cmd[12] = 201
cmd[12] + cmd[13] = 207
cmd[13] + cmd[14] = 203
cmd[14] + cmd[15] = 215
cmd[15] + cmd[16] = 235
cmd[16] + cmd[17] = 242

The solution:
cmd[0] = 69
cmd[1] = 75
cmd[2] = 79
cmd[3] = 123
cmd[4] = 118
cmd[5] = 115
cmd[6] = 102
cmd[7] = 116
cmd[8] = 112
cmd[9] = 100
cmd[10] = 95
cmd[11] = 100
cmd[12] = 101
cmd[13] = 106
cmd[14] = 97                    
cmd[15] = 118
cmd[16] = 117
cmd[17] = 125


The flag:
EKO{vsftpd_dejavu}

The binary:
https://ctf.ekoparty.org/static/pre-ekoparty/backdoor


Related news


  1. Hacking Tools Windows 10
  2. Android Hack Tools Github
  3. Hack Rom Tools
  4. Hacker Tools For Windows
  5. Nsa Hack Tools
  6. Hack App
  7. What Are Hacking Tools
  8. Hack Tools Online
  9. Hacking Tools For Windows 7
  10. Hacking Tools 2019
  11. Hack Tools For Windows
  12. Best Hacking Tools 2020
  13. New Hacker Tools
  14. Hacking Tools Pc
  15. Tools For Hacker
  16. Hacker Tools For Ios
  17. Hacking App
  18. Hacking Tools Windows 10
  19. Computer Hacker
  20. Hacking Tools 2019
  21. Pentest Tools List
  22. Pentest Tools For Ubuntu
  23. Hack Tools For Games
  24. Hacker Tools Linux
  25. Hacker Tools 2019
  26. Hacking Tools Usb
  27. Hacking Tools
  28. Tools 4 Hack
  29. Pentest Recon Tools
  30. Hacking Tools Download
  31. World No 1 Hacker Software
  32. Black Hat Hacker Tools
  33. Hacking Tools And Software
  34. Hacker Tools Free Download
  35. Pentest Tools Linux
  36. Hack Website Online Tool
  37. Hacking Tools Github
  38. Hack And Tools
  39. Pentest Tools Website
  40. Hacking Tools Windows 10
  41. Hack Tools For Games
  42. Hack Tools For Pc
  43. Hacker Techniques Tools And Incident Handling
  44. Hacking Tools Name
  45. Pentest Tools Bluekeep
  46. New Hack Tools
  47. How To Install Pentest Tools In Ubuntu
  48. Hack And Tools
  49. Hacker Tools For Ios
  50. Hacker Search Tools
  51. Physical Pentest Tools
  52. Pentest Reporting Tools
  53. Hacker Tools Github
  54. Pentest Tools Nmap
  55. Pentest Tools For Ubuntu
  56. Hacker Tools Mac
  57. Hacking Tools 2019
  58. Pentest Box Tools Download
  59. Hack And Tools
  60. Pentest Tools For Windows
  61. Hack Tools For Pc
  62. Pentest Tools Port Scanner
  63. Hacking Tools
  64. What Are Hacking Tools
  65. Tools Used For Hacking
  66. Pentest Reporting Tools
  67. Pentest Tools For Windows
  68. Hack Tools Github
  69. Hacking Tools And Software
  70. Tools Used For Hacking
  71. Hack Tools For Ubuntu
  72. Hacker Techniques Tools And Incident Handling
  73. Android Hack Tools Github
  74. Hacking Tools Mac
  75. Pentest Tools Port Scanner
  76. Hacker Tools For Mac
  77. Top Pentest Tools
  78. Pentest Tools
  79. Hacker Tools Free Download
  80. How To Make Hacking Tools
  81. Pentest Tools For Windows
  82. Hacking Tools Software
  83. Pentest Tools Github
  84. Hack App
  85. Blackhat Hacker Tools
  86. World No 1 Hacker Software
  87. Hackers Toolbox
  88. Black Hat Hacker Tools
  89. Hack Apps
  90. How To Install Pentest Tools In Ubuntu
  91. How To Install Pentest Tools In Ubuntu
  92. Hack Apps
  93. Hacks And Tools
  94. Pentest Tools For Android
  95. Hacking Tools Mac
  96. New Hacker Tools
  97. Nsa Hack Tools
  98. Best Hacking Tools 2019
  99. Beginner Hacker Tools
  100. Termux Hacking Tools 2019
  101. Hacking Tools 2020
  102. Hacker Tools 2019
  103. Hack Tools Pc
  104. Tools Used For Hacking
  105. Pentest Tools Online
  106. Usb Pentest Tools
  107. Hack Tools Pc
  108. Pentest Tools Windows
  109. Hacking Tools For Beginners
  110. New Hacker Tools
  111. Hack Tools Online
  112. Hacking Tools 2019
  113. Hacker Tools 2019
  114. Hack Tools Pc
  115. What Are Hacking Tools
  116. Pentest Tools Url Fuzzer
  117. New Hacker Tools
  118. Blackhat Hacker Tools
  119. Hack And Tools
  120. Nsa Hack Tools Download
  121. Hack And Tools
  122. Best Hacking Tools 2019
  123. How To Make Hacking Tools
  124. Hacker Tools Hardware
  125. How To Hack
  126. Best Hacking Tools 2019
  127. Hacker Tools Github
  128. Hacking Tools For Windows
  129. Top Pentest Tools
  130. Pentest Tools For Android
  131. Ethical Hacker Tools
  132. Hacker Tools Mac
  133. Hacker Tools For Ios
  134. Hack Tools Github
  135. Hacking Tools 2020
  136. Pentest Tools Linux
  137. Pentest Tools Website Vulnerability
  138. Hack Tools For Games
  139. Black Hat Hacker Tools
  140. New Hacker Tools
  141. Hack Tools Download
  142. Black Hat Hacker Tools
  143. Hackers Toolbox
  144. Hacking Tools Github
  145. Pentest Automation Tools
  146. Hack Tools Download
  147. Blackhat Hacker Tools
  148. How To Make Hacking Tools
  149. Hacking Tools Pc
  150. Pentest Tools Github
  151. Top Pentest Tools
  152. Hacker Security Tools
  153. Hack Tools Pc
  154. Hack App
  155. Hack Tool Apk
  156. Usb Pentest Tools

No hay comentarios:

Publicar un comentario