File: 1527.txt

package info (click to toggle)
snort 2.7.0-20.4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 34,512 kB
  • ctags: 18,772
  • sloc: ansic: 115,404; sh: 10,893; makefile: 1,372; perl: 487; sql: 213
file content (67 lines) | stat: -rw-r--r-- 1,863 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
Rule:  

--
Sid:
1527

--
Summary:
This event is generated when an attempt is made to exploit a known 
vulnerability in the Basilix webmail PHP script.

An attacker can access mysql.class file to obtain MySQL login and use it
for further attacks.

--
Impact:
Serious. Password disclosure which can lead to further system 
compromise.

authenticate directly to a mysql database. Many Sun Cobalt Linux servers use Basilix webmail

--
Detailed Information:
A webserver usually sends files in the webroot to an anonymous user 
without further processing. PHP scripts often include files (which 
contain configuration variables, functions, etc.) that are stored 
using a suffix that does not prevent a webserver sending them in clear 
text. The ".class" suffix is not usually explicitly denied in a standard
web server configuration and the file "mysql.class" may be sent to the 
attacker.

--
Attack Scenarios:
An attacker gets mysql.class containing database login credentials. The attacker can then connect to the database server using the login provided by mysql.class file and modify the database.

--
Ease of Attack:
Simple

--
False Positives:
File doesn't exist or mysql.class is for example a java class file publicly available on the server

--
False Negatives:
None known

--
Corrective Action:
Update Basilix script (www.basilix.org)

Check files which contain php code for a suffix that might be rendered in plaintext by the web server.

Workaround - register .class the same way that the extensions .php, .php3 or.php4 are registered in the web server configuration file.
Note: .class is usually used by java applets

--
Contributors:
Sourcefire Research Team
Brian Caswell <bmc@sourcefire.com>
Nigel Houghton <nigel.houghton@sourcefire.com>
Snort documentation contributed by Ueli Kistler, <u.kistler@engagesecurity.com>
-- 
Additional References:


--