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

LynX-adv4_SignatureDB.txt

LynX-adv4_SignatureDB.txt
Posted Feb 16, 2004
Authored by LyNx

SignatureDB is vulnerable to a denial of service attack due to a buffer overflow in a sprintf statement.

tags | advisory, denial of service, overflow
SHA-256 | 63a06ca66a5273103422bc7ed4658d21d246ba1116ba9a6e1d2549646f4199ca

LynX-adv4_SignatureDB.txt

Change Mirror Download


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
File: LynX-adv4_SignatureDB.txt
Date: 15/02/2004
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

o NAME: problems with database files in 'SignatureDB'

o CLASS: denial of service (DOS)

o PROGRAMM: SignatureDB [http://pldaniels.com/signaturedb/]
- Affected versions: 0.1.1
- Immune versions: -

o OS: Linux and UNIX clones

o VENDOR: Paul L Daniels <pldaniels@pldaniels.com>

o DESCRIPTION:
'SignatureDB' is actually two components, a signature database which is
available on the internet, and a 'signatureID' program, which scans your files.
You can in effect consider 'SDB/ID' in the same way you consider and use an
'AntiVirus' program, but 'SDB/ID' are aimed at a slightly different sector of
the industry. Its purpose is to provide signatures/fingerprints of common,
annoying emails/files, not specifically viruses.

o VULNERABILITY DESCRIPTION:
'SignatureDB' package contain 'sdbscan' program, which scans files, in
according with specified database file. It is possible to create a big 'key'
parameter in this file, that will reduce to 'Segmentation fault'. Function which
work with contents of database files, are located in 'ringsearch.c' file.
After '#' - going my comments.

Cut from file: 'ringsearch.h'
...
33 struct _infonode {
34 char key[20];
35 char *comment;
36 int major;
37 int minor;
38 int flags;
39 };
...

Cut from file: 'ringsearch.c'
...
537 int RS_load_keys( struct _snode *parent, char *fname ){
/* # where 'fname' - database filename */
...
541 char line[10240]; /* # allocating memory for 10240 bytes, and then use */
/* # only 1024, maybe author was mistaken and last 0 */
/* # is unnecessary :) */
...
562 while (fgets(line, 1023, f)){
...
582 sprintf(info->key,"%s",key); /* # size of 'key' are not checking, its */
/* # can be =< 1018 bytes, and size of */
/* # 'info->key' is equal 20 bytes, so */
/* # 'info->key' can be overflowed */
...

Its only first version of 'SignatureDB', so i think that in the next versions
this problem will be fixed.
P.S. Sorry, for my poor english :).

o VULNERABILITY PREVENTION:
Instead of using 'sprintf' function, will be more correct to use function
'snprintf'.

o EXPLOITING:
It is possible to specify configuration file for 'sdbscan' program, in this
file you may type path to your own database file, which contents can cause
buffer overflow and then 'Segmentation fault'.

Example of exploiting :

[LynX@ /tmp]$ cat my.conf
dbfile=/tmp/fake.db
verbose=1
fastscan=0
fastexit=0
[LynX@ /tmp]$ cat fake.db
AAA ... '1000 x A' ... AAA:1:1:1:1:A:A
[LynX@ /tmp]$ sdbscan --conf_file=my.conf
Segmentation fault (core dumped)
[LynX@ /tmp]$

o VENDOR RESPONSE:
I sent notification mail to the Paul Daniels <pldaniels@pldaniels.com> and
did not received an answer.

o CREDITS:
- Thanks: nob0dy, netc0de, Xarth
- Greets: R00T T34M [http://rootteam.void.ru],
void,
LimpidByte,

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Discovered by LynX
<_LynX@bk.ru>
/ close your eyes & dream with me /
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAkAv8HMACgkQjvZ3gq5fCnGA8gCgnqItklxup0YzArOkT6nn+kNI
5BgAoOf+SFgV1vXH73RcdzIWXbdXa8NK
=iIIl
-----END PGP SIGNATURE-----
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