VirtualDJ Pro/Home <=7.3 Buffer Overflow Vulnerability
When the user enters a folder, VirtualDJ tries to retrieve all information from the ID3 tags of MP3 files inside such as ‘Title’, ‘Album’, and ‘Artist’ and stores it in a buffer. After that, a second buffer of length 4096 is allocated in the stack and only the characters A-Z from the first buffer will be copied to it. According to the ID3 v2.x standard, these tags can have length greater than 4096; therefore it is possible to produce a buffer overflow in this second buffer. At the time when the buffer overflow happens and the program reaches the RETN instruction, the EDI register points to the first buffer. We cannot assign the EIP the address of the first buffer directly since it contains characters which are not in range A-Z. However if we take into account the previous information, we can do this indirectly: We can set the bytes of the title 4100:4104 = 'FSFD'. After the buffer overflows occurs we get EIP = 'FSFD' = 0x44465346. At this address (inside urlmon.dll) we find a 'CALL EDI' instruction and so the bytes in the first buffer will be executed. Now we face another problem. VirtualDJ has inserted a 'C3' byte (RETN) before each non-printable ASCII character in the first buffer and we cannot execute the shellcode directly. We can solve this by pushing into the stack the bytes of the shellcode using only printable ASCII characters.