Issues (158)

Security Analysis    no request data  

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.

Gruntfile.js (1 issue)

Labels
Severity

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
module.exports = function(grunt) {
2
3
	grunt.initConfig({
4
		pkg: grunt.file.readJSON('package.json'),
5
		uglify: {
6
			options: {
7
				banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n',
8
				beautify: false,
9
				mangle: false
10
			},
11
			build: {
12
				files: {
13
					'js/app.min.js': [
14
						'js/app/src/**/*.js',
15
						'js/app/src/*.js',
16
						'js/src/**/*.js',
17
						'js/src/*.js',
18
					],
19
					'js/integrated.min.js': [
20
						'js/integrated/src/**/*.js',
21
						'js/integrated/src/*.js',
22
						'js/src/**/*.js',
23
						'js/src/*.js',
24
					],
25
					'js/admin.min.js' : [
26
						'js/admin/src/*.js'
27
					],
28
					'js/error.min.js' : [
29
						'js/error/src/*.js'
30
					],
31
					'vendor/all.min.js' : [
32
						'vendor/angular/angular.min.js',
33
						'vendor/angular-enhance-text/build/angular-enhance-text.min.js',
34
						'vendor/angular-resource/angular-resource.min.js',
35
						'vendor/angular-sanitize/angular-sanitize.min.js',
36
						'vendor/jquery-autosize/jquery.autosize.min.js',
37
						'vendor/moment/min/moment.min.js',
38
						'vendor/rangyinputs-jquery-src/index.js',
39
						'vendor/strophe/strophe.min.js',
40
						'vendor/emojione/lib/js/emojione.min.js',
41
					]
42
				}
43
			}
44
		},
45
		cssmin: {
46
			combine: {
47
				files: {
48
					'css/main.min.css': [
49
						'css/src/*.css',
50
						'!css/admin',
51
						'!css/integrated'
52
					],
53
					'css/admin.min.css' : [
54
						'css/admin/src/*.css'
55
					],
56
					'css/integrated.min.css' : [
57
						'css/integrated/src/*.css'
58
					],
59
					'css/error.min.css' : [
60
						'css/error/src/*.css'
61
					]
62
				}
63
			}
64
		},	
65
		
66
		karma: {
67
			integrated: {
68
				options: {
69
					files: [
70
						'vendor/jquery/dist/jquery.js',
71
						'vendor/jquery-autosize/jquery.autosize.js',
72
						'js/test/mocks/OC.js',
73
						'vendor/all.min.js',
74
						'vendor/angular-mocks/angular-mocks.js',
75
						'js/integrated.min.js',
76
						'js/test/**/*.js',
77
					],
78
					frameworks: [
79
						'jasmine'
80
					],
81
					reporters: [
82
						'progress'
83
					],
84
					port: 9876,
85
					browsers: [
86
						'Firefox'
87
					],
88
					singleRun: true,
89
				}
90
			},
91
			app: {
92
				options: {
93
					files: [
94
						'vendor/jquery/dist/jquery.js',
95
						'vendor/jquery-autosize/jquery.autosize.js',
96
						'js/test/mocks/OC.js',
97
						'vendor/all.min.js',
98
						'vendor/angular-mocks/angular-mocks.js',
99
						'js/app.min.js',
100
						'js/test/**/*.js',
101
					],
102
					frameworks: [
103
						'jasmine'
104
					],
105
					reporters: [
106
						'progress'
107
					],
108
					port: 9876,
109
					browsers: [
110
						'Firefox'
111
					],
112
					singleRun: true
113
				}
114
			}
115
		},
116
		htmlmin: {
117
			dist: {
118
				options: {
119
					removeComments: true,
120
					collapseWhitespace: true
121
				},
122
				files: {
123
					'integrated.min.html': 'integrated.html'
124
				}
125
			}
126
		},
127
		copy: {
128
			main: {
129
				files: [
130
					{
131
						expand: true, src: ['./**'], dest: 'dist/'
132
					}
133
				]
134
			}
135
		},
136
		clean : [
137
			"dist/upload.sh",
138
			"dist/composer.json",
139
			"dist/composer.lock",
140
			"dist/vendor/emojione/assets/svg",
141
			"dist/vendor/emojione/assets/png",
142
			"dist/.npm",
143
			"dist/.node-gyp",
144
			"dist/node_modules",
145
			"dist/.bowerrc",
146
			"dist/bower.json",
147
			"dist/.git*",
148
			"dist/.scrutinizer.yml",
149
			"dist/.travis.yml",
150
			"dist/Gruntfile.js",
151
			"dist/karma.conf.js",
152
			"dist/Makefile",
153
			"dist/package.json",
154
			"dist/build.sh",
155
			"dist/tests",
156
		],
157
		compress : {
158
			main: {
159
				options: {
160
					"archive": "build.zip"
161
				},
162
				"files": [
163
					{expand: true,src: ['**'], cwd: "dist", dest: 'chat/'}
164
				]
165
			}
166
		},
167
		watch: {
168
			files: ['./**.*', '!./**.min.*'],
169
			tasks: ['uglify', 'cssmin', 'htmlmin']
170
		},
171
		phpunit: {
172
			unit: {
173
				dir: './tests/unit/app',
174
				dir: './tests/unit/controller',
0 ignored issues
show
Duplicate key 'dir'.
Loading history...
175
				options: {
176
					bootstrap: './tests/unit/autoloader.php'
177
				}
178
			},
179
			integration: {
180
				dir: './tests/integration/lib/och/db',
181
				options: {
182
					bootstrap: '../../lib/base.php'
183
				}
184
			},
185
			options: {
186
				bin: './vendor/bin/phpunit',
187
				noConfiguration: true
188
			}
189
		}
190
	});
191
192
	grunt.loadNpmTasks('grunt-contrib-watch');
193
	grunt.loadNpmTasks('grunt-contrib-uglify');
194
	grunt.loadNpmTasks('grunt-contrib-clean');
195
	grunt.loadNpmTasks('grunt-contrib-compress');
196
	grunt.loadNpmTasks('grunt-contrib-copy');
197
	grunt.loadNpmTasks('grunt-contrib-htmlmin');
198
	grunt.loadNpmTasks('grunt-contrib-cssmin');
199
	grunt.loadNpmTasks('grunt-phpunit');
200
	grunt.loadNpmTasks('grunt-karma');
201
	grunt.registerTask('default', ['uglify', 'cssmin', 'htmlmin']);
202
	grunt.registerTask('dist', ['uglify', 'cssmin', 'htmlmin', 'copy', 'clean', 'compress']);
203
	grunt.registerTask('tests', ['karma', 'phpunit']);
204
};
205