File: 1455.txt

package info (click to toggle)
snort 2.9.7.0-5
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 55,000 kB
  • ctags: 38,464
  • sloc: ansic: 266,667; sh: 12,508; makefile: 2,908; yacc: 497; perl: 496; lex: 261; sed: 14
file content (69 lines) | stat: -rw-r--r-- 1,780 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
69
Rule:  

--
Sid:
1455

--
Summary: 
This event is generated when an attempt is made to access a web 
application that may lead to exploitation of the application.

--
Impact: 
Potentially harmful execution of binaries through perl open()

--
Detailed Information: 
An open source calendar perl script by Matt Kruse, Allows commands to be
executed without input verification using the perl open() function. ie
/cgi-bin/calendar.pl place the string "|ping 127.0.0.1|" in the
configuration file field, this executes the command "ping 127.0.0.1" 

--
Affected Systems:
	Matt Kruse Calendar Script version 2.2.

--
Attack Scenarios: 
An unauthenticated user can execute arbitrary programs on the server by
accessing calendar.pl and inputting commands such as "|mail
/etc/passwd|" into the configuration file field.

--
Ease of Attack: 
Simple. No exploit software required.

--
False Positives: 
If your webserver has pages by the name of calendar.pl this rule will
fire often. Many sites now use calendar applications and this rule may 
generate a large number of false positives, it does not distinguish 
between perl cgi applications and php scripts. Consider tuning this rule
for your site if it is generating a large number of false positives. If 
you use a calendar application, consider changing the name of the script
to something other than "calendar.pl".

--
False Negatives: 
None known.

--
Corrective Action: 
Download a newer version of the cgi 

--
Contributors: 
Original Rule Writer Unknown
Snort documentation contributed by Aaron Navratil (Initial Research)
Snort documentation contributed by Josh Gray (Edits)
Sourcefire Research Team
Nigel Houghton <nigel.houghton@sourcefire.com>

-- 
Additional References:

Bugtraq:
http://online.securityfocus.com/bid/1215

--