File: 1149.txt

package info (click to toggle)
snort 2.9.2.2-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 53,752 kB
  • sloc: ansic: 214,625; sh: 13,872; makefile: 2,574; yacc: 505; perl: 496; lex: 260; sql: 213; sed: 14
file content (68 lines) | stat: -rw-r--r-- 1,860 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
Rule:  

--
Sid:
1149

--
Summary:
This event is generated when an attempt is made to access Wwwcount 
(count.cgi), a very popular CGI program used to track website usage.

--
Impact:
Will allow access as with the privileges of the user running the 
process.

--
Detailed Information:
In particular, it enumerates the number of hits on given webpages and 
increments them on a 'counter'. In October of 1997 two remotely 
exploitable problems were discovered with this program. The first 
problem was somewhat innocuous in that it only allowed remote users to 
view .GIF files they were not supposed to have access to. This may be 
dangerous if the site contains sensitive data in .GIF files such as 
demographic/financial data in charts etc.

The second and most serious problem is a buffer overflow in QUERY_STRING
enviroment variable handled by the program. In essence a remote user can
send an overloy long query to the program and overflow a buffer in order
to execute their own commands as whatever privilege level the program is
running as.

--
Attack Scenarios:
Simple HTTP GET request.

--
Ease of Attack:
Simple. Exploit code available

--
False Positives:
A none vulnerable version of the application will generate events as the
rule only looks for access to count.cgi during a established connection.

--
False Negatives:

--
Corrective Action:
If you are running version 2.3 of Wwwcount it is suggested you upgrade 
immediately. In the meantime you may wish to consider removing the 
execution bit on this program. Versions 2.4 and above of this software 
are available at: 

http://www.fccc.edu/users/muquit/Count.html 

--
Contributors:
Sourcefire Research Team
Brian Caswell <bmc@sourcefire.com>
Nigel Houghton <nigel.houghton@sourcefire.com>
Snort documentation contributed by Neal Timm <nealtimm@sbcglobal.net>

-- 
Additional References:

--