what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

snmppd_dos.txt

snmppd_dos.txt
Posted May 7, 2005
Authored by Xpl017Elz | Site slava.local.nsys.by

Snmppd format string vulnerability. Snmppd (used by / with Nagios) may contain a format-string vulnerability in unsafe syslog() calls.

tags | advisory
SHA-256 | 530283249b60e4f090b7e6f5b2df86eca244287192c133b0dfe453b3eb4a9996

snmppd_dos.txt

Change Mirror Download


========================================
INetCop Security Advisory #2005-0x82-027
========================================


Title: Snmppd potentially format string vulnerability.


0x01. Description

About:
snmppd is an SNMP proxy daemon that is designed to work with Nagios.
It loads MIBs upon startup, listens on a TCP socket for SNMP GET requests,
polls the specified host, and returns the value to caller process.
The caller process is usually the Nagios plugin check_snmpp.

More detailed information is next URL.

URL: http://slava.local.nsys.by/projects/snmppd/

This could happen when program calls wrong syslog() function.
Using this vulnerability, attacker can get root access remotely.
But, for this code, it's only possiblity.

The program uses wrong syslog() ,when option is matched.

`/snmppd-0.4.5/snmppd/snmppd_util.c':
--
...
23 void snmppd_log(int level, char *fmt, va_list args)
24 {
25 char buffer[2048];
26 vsnprintf(buffer, 2048, fmt, args);
27 if (config.debug || config.nofork) {
...
38 } else {
39 if (level >= LOG_INFO) {
40 syslog(level, buffer);
41 }
42 }
43 }
...
45 void log_error(char *fmt, ...)
46 {
...
50 snmppd_log(LOG_ERR, fmt, args);
...
52 }
53
54 void log_info(char *fmt, ...)
55 {
...
59 snmppd_log(LOG_INFO, fmt, args);
...
61 }
62
63 void log_debug(char *fmt, ...)
64 {
...
69 snmppd_log(LOG_DEBUG, fmt, args);
...
72 }
--

This code is used as displaied above.
INetcop Security team hasn't researched whether it is exploitable or not.


0x02. Vulnerable Packages


Vendor site: http://bubble.nsys.by/projects/snmppd/

snmppd all version
-snmppd-0.4.1.tar.gz
-snmppd-0.4.2.tar.gz
-snmppd-0.4.3-special.tar.gz
-snmppd-0.4.3.tar.gz
-snmppd-0.4.4.tar.gz
-snmppd-0.4.5.tar.gz
-snmppd-0.4.tar.gz
+Linux


0x03. Exploit


There is No exploit for now.


0x04. Patch


snmppd 0.4.5 patch:

=== snmppd-0.4.5.patch ===
--- snmppd_util.c Thu Jul 11 18:52:34 2002
+++ patch/snmppd_util.c Sat Mar 5 23:54:54 2005
@@ -37,7 +37,7 @@
fputc('\n', stdout);
} else {
if (level >= LOG_INFO) {
- syslog(level, buffer);
+ syslog(level, "%s", buffer);
}
}
}

=== eof ===


Japan MUST apologize what they have done to all Asian countries during WW2.
Eduation is to teach TRUE history to their child.

History is one thing that CAN NOT be changed.
Japan should follow German model.

Germany is also a defeated nation, but they feel deeply sorry for what
they have done and they teaches the REAL history.

The history goese on.


P.S: Sorry, for my poor english.


--
By "dong-houn yoU" (Xpl017Elz), in INetCop Security Co., LTD.

MSN & E-mail: szoahc(at)hotmail(dot)com,
xploit(at)hackermail(dot)com

INetCop Security Home: http://www.inetcop.net
My World: http://x82.inetcop.org

GPG public key: http://x82.inetcop.org/h0me/pr0file/x82.k3y
--


--
Login or Register to add favorites

File Archive:

November 2024

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