exploit the possibilities
Home Files News &[SERVICES_TAB]About Contact Add New

boozt.txt

boozt.txt
Posted Jan 11, 2002
Authored by Rafael San Miguel Carrasco

The Boozt! banner management software for Linux v0.9.8alpha has a remotely exploitable buffer overflow in a CGI executable. Fix available here.

tags | overflow, cgi
systems | linux
SHA-256 | b18893da35f68fb0231c9a63fbf5e0eeef0dff5397177aa07c4a990258121765

boozt.txt

Change Mirror Download



BOOZT! is a banner management software for linux servers. It has a remote
administration system based on web. I played with version 0.9.8alpha.


Here is a reproduction of the bug:

http://127.0.0.1:8080/cgi-bin/boozt/admin/index.cgi?section=5&input=1

Fill the "Name Field" with enough A's (1590 was be fine for me). Press "Create
New Banner". It should show this:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to complete your request.

Let's see what happened in error_log:

[Tue Feb 5 17:13:52 2002] [error] [client 127.0.0.1] Premature end of script
headers: /usr/local/apache/cgi-bin/boozt/admin/index.cgi

Now see what the code for the AdministrationBanners function
(src/admin/banners.c) looks like:

char name[255]="";

[...]

if ((pomus=(char *)GetFromCgi("name"))==NULL) strcpy(name,"");
else strcpy(name,pomus);

There is no boundary checking in GetFromCgi:

#define GetFromCgi(name) cgiParam(name)

const char *cgiParam(const char *name)
{
return cgiPosParam((CgiPos*)listGetByName(name));
}

const char *cgiPosParam(CgiPos *where)
{
CgiElement *w=(CgiElement*)where;
DefCheck(NULL);

[ ... code to walk over the linked list ... ]
}

This way we can write A's (or shellcode) beyond the boundaries of the "name"
variable, making the cgi crash (or give us a shell with httpd privileges).



Rafael San Miguel Carrasco
(_kiss_)

rsanmcar@alum.uax.es

Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    0 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    0 Files
  • 23
    Apr 23rd
    0 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close