what you don't know can hurt you
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:

July 2024

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