Issues (733)

Security Analysis    not enabled

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

include/mimetypes.inc.php (1 issue)

Upgrade to new PHP Analysis Engine

These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more

1
<?php
2
3
// 
4
5
/**
6
 * Extension to mimetype lookup table
7
 *
8
 * This file is provided as an helper for objects who need to perform filename to mimetype translations.
9
 * Common types have been provided, but feel free to add your own one if you need it.
10
 * <br><br>
11
 * See the enclosed file LICENSE for licensing information.
12
 * If you did not receive this file, get it at http://www.fsf.org/copyleft/gpl.html
13
 *
14
 * @copyright    XOOPS Project (http://xoops.org)
15
 * @license      http://www.fsf.org/copyleft/gpl.html GNU public license
16
 * @author       Skalpa Keo <[email protected]>
17
 * @since        2.0.9.3
18
 */
19
20
return array(
21
22
    'hqx' => 'application/mac-binhex40',
23
24
    'doc' => 'application/msword',
25
26
    'dot' => 'application/msword',
27
28
    'bin' => 'application/octet-stream',
29
30
    'lha' => 'application/octet-stream',
31
32
    'lzh' => 'application/octet-stream',
33
34
    'exe' => 'application/octet-stream',
35
36
    'class' => 'application/octet-stream',
37
38
    'so' => 'application/octet-stream',
39
40
    'dll' => 'application/octet-stream',
41
42
    'pdf' => 'application/pdf',
43
44
    'ai' => 'application/postscript',
45
46
    'eps' => 'application/postscript',
47
48
    'ps' => 'application/postscript',
49
50
    'smi' => 'application/smil',
51
52
    'smil' => 'application/smil',
53
54
    'wbxml' => 'application/vnd.wap.wbxml',
55
56
    'wmlc' => 'application/vnd.wap.wmlc',
57
58
    'wmlsc' => 'application/vnd.wap.wmlscriptc',
59
60
    'xla' => 'application/vnd.ms-excel',
61
62
    'xls' => 'application/vnd.ms-excel',
63
64
    'xlt' => 'application/vnd.ms-excel',
65
66
    'ppt' => 'application/vnd.ms-powerpoint',
67
68
    'csh' => 'application/x-csh',
69
70
    'dcr' => 'application/x-director',
71
72
    'dir' => 'application/x-director',
73
74
    'dxr' => 'application/x-director',
75
76
    'spl' => 'application/x-futuresplash',
77
78
    'gtar' => 'application/x-gtar',
79
80
    'php' => 'application/x-httpd-php',
81
82
    'php3' => 'application/x-httpd-php',
83
84
    'php5' => 'application/x-httpd-php',
85
86
    'phtml' => 'application/x-httpd-php',
87
88
    'js' => 'application/x-javascript',
89
90
    'sh' => 'application/x-sh',
91
92
    'swf' => 'application/x-shockwave-flash',
93
94
    'sit' => 'application/x-stuffit',
95
96
    'tar' => 'application/x-tar',
97
98
    'tcl' => 'application/x-tcl',
99
100
    'xhtml' => 'application/xhtml+xml',
101
102
    'xht' => 'application/xhtml+xml',
103
104
    //    'xhtml' => 'application/xml',
0 ignored issues
show
Unused Code Comprehensibility introduced by
58% of this comment could be valid code. Did you maybe forget this after debugging?

Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.

The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.

This check looks for comments that seem to be mostly valid code and reports them.

Loading history...
105
106
    'ent' => 'application/xml-external-parsed-entity',
107
108
    'dtd' => 'application/xml-dtd',
109
110
    'mod' => 'application/xml-dtd',
111
112
    'gz' => 'application/x-gzip',
113
114
    'zip' => 'application/zip',
115
116
    'au' => 'audio/basic',
117
118
    'snd' => 'audio/basic',
119
120
    'mid' => 'audio/midi',
121
122
    'midi' => 'audio/midi',
123
124
    'kar' => 'audio/midi',
125
126
    'mp1' => 'audio/mpeg',
127
128
    'mp2' => 'audio/mpeg',
129
130
    'mp3' => 'audio/mpeg',
131
132
    'aif' => 'audio/x-aiff',
133
134
    'aiff' => 'audio/x-aiff',
135
136
    'm3u' => 'audio/x-mpegurl',
137
138
    'ram' => 'audio/x-pn-realaudio',
139
140
    'rm' => 'audio/x-pn-realaudio',
141
142
    'rpm' => 'audio/x-pn-realaudio-plugin',
143
144
    'ra' => 'audio/x-realaudio',
145
146
    'wav' => 'audio/x-wav',
147
148
    'bmp' => 'image/bmp',
149
150
    'gif' => 'image/gif',
151
152
    'jpeg' => 'image/jpeg',
153
154
    'jpg' => 'image/jpeg',
155
156
    'jpe' => 'image/jpeg',
157
158
    'png' => 'image/png',
159
160
    'tiff' => 'image/tiff',
161
162
    'tif' => 'image/tif',
163
164
    'wbmp' => 'image/vnd.wap.wbmp',
165
166
    'pnm' => 'image/x-portable-anymap',
167
168
    'pbm' => 'image/x-portable-bitmap',
169
170
    'pgm' => 'image/x-portable-graymap',
171
172
    'ppm' => 'image/x-portable-pixmap',
173
174
    'xbm' => 'image/x-xbitmap',
175
176
    'xpm' => 'image/x-xpixmap',
177
178
    'ics' => 'text/calendar',
179
180
    'ifb' => 'text/calendar',
181
182
    'css' => 'text/css',
183
184
    'html' => 'text/html',
185
186
    'htm' => 'text/html',
187
188
    'asc' => 'text/plain',
189
190
    'txt' => 'text/plain',
191
192
    'rtf' => 'text/rtf',
193
194
    'sgml' => 'text/x-sgml',
195
196
    'sgm' => 'text/x-sgml',
197
198
    'tsv' => 'text/tab-seperated-values',
199
200
    'wml' => 'text/vnd.wap.wml',
201
202
    'wmls' => 'text/vnd.wap.wmlscript',
203
204
    'xsl' => 'text/xml',
205
206
    'mpeg' => 'video/mpeg',
207
208
    'mpg' => 'video/mpeg',
209
210
    'mpe' => 'video/mpeg',
211
212
    'qt' => 'video/quicktime',
213
214
    'mov' => 'video/quicktime',
215
216
    'avi' => 'video/x-msvideo',
217
218
    'csv' => 'text/csv'
219
);
220