Issues (524)

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.

js/containers/DeploymentStatusBar.jsx (2 issues)

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
const React = require('react');
2
const ReactRedux = require('react-redux');
3
4
const actions = require('../_actions.js');
5
const constants = require('../constants/deployment.js');
6
const AbortButton = require('../containers/buttons/AbortDeployment.jsx');
7
8
function getHeaderText(deployState) {
9
	switch (deployState) {
10
		case constants.STATE_COMPLETED:
11
			return 'Successfully deployed';
12
		case constants.STATE_FAILED:
13
			return 'Failed deployment';
14
		case constants.STATE_ABORTING:
15
			return 'Aborting deployment';
16
		default:
17
			return 'Deploying';
18
	}
19
}
20
21
function getDescriptionText(deployState) {
22
	switch (deployState) {
23
		case constants.STATE_DEPLOYING:
24
		case constants.STATE_QUEUED:
25
			return 'and come back at any time to check its progress.';
26
		default:
27
			return 'and come back to access this information at any time.';
28
	}
29
}
30
31
function getHeaderIcon(deployState) {
32
	switch (deployState) {
33
		case constants.STATE_DEPLOYING:
34
		case constants.STATE_QUEUED:
35
		case constants.STATE_APPROVED:
36
			return 'fa-cogs';
37
		case constants.STATE_FAILED:
38
			return 'fa-exclamation-triangle';
39
		default:
40
			return 'fa-rocket';
41
	}
42
}
43
44
function getTimeInformation(deployState, props) {
45
	switch (deployState) {
46
		case constants.STATE_DEPLOYING:
47
		case constants.STATE_QUEUED:
48
			return "Approximately " + props.deployment_estimate + " minutes";
49
		default:
50
			return props.date_started_nice;
51
	}
52
}
53
54
function DeploymentStatusBar(props) {
55
	const deployState = props.state;
56
57
	const headerText = getHeaderText(deployState);
58
	const descriptionText = getDescriptionText(deployState);
59
	const headerIcon = getHeaderIcon(deployState);
60
	const timeInformation = getTimeInformation(deployState, props);
61
62
	return (
63
		<div className="deployment-status-bar fade-in clearfix">
64
			<div className={"deployment-status-icon " + deployState}>
65
				<i className={"fa " + headerIcon} aria-hidden="true" />
66
			</div>
67
			<div className="deployment-status-text-parent">
68
				<div className="deployment-status-text-child">
69
					<div className="deployment-status-header">
70
						{headerText} to
71
						<strong> {props.project_name} / {props.environment_name}</strong> <small>{timeInformation}</small>
0 ignored issues
show
This line exceeds the maximum configured line length of 120.
Loading history...
72
					</div>
73
					<div className="deployment-status-close-notice">
74
						You may <a
75
							href={"javascript:void(0);"}
0 ignored issues
show
Script URL is a form of eval.
Loading history...
76
							onClick={props.onClose}
77
						>close this screen</a> {descriptionText}
78
					</div>
79
				</div>
80
			</div>
81
			<div className="abort-action pull-right">
82
				<AbortButton />
83
			</div>
84
		</div>
85
	);
86
}
87
88
const mapStateToProps = function(state) {
89
	const current = state.deployment.list[state.deployment.current_id] || {};
90
	return {
91
		state: current.state,
92
		environment_name: state.environment.name,
93
		project_name: state.environment.project_name,
94
		deployment_estimate: current.deployment_estimate,
95
		date_started_nice: current.date_started_nice,
96
	};
97
};
98
99
const mapDispatchToProps = function() {
100
	return {
101
		onClose: function() {
102
			actions.history.push('/');
103
		},
104
	};
105
};
106
107
module.exports = ReactRedux.connect(mapStateToProps, mapDispatchToProps)(DeploymentStatusBar);
108