Issues (4511)

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.

web_interface/astpp/application/views/master.php (3 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
<? include('header.php'); ?>
0 ignored issues
show
Security Best Practice introduced by
It is not recommend to use PHP's short opening tag <?, better use <?php, or <?= in case of outputting.

Short opening tags are disabled in PHP’s default configuration. In such a case, all content of this file is output verbatim to the browser without being parsed, or executed.

As a precaution to avoid these problems better use the long opening tag <?php.

Loading history...
2
<!--
3
ASTPP  3.0 
4
Add classes 
5
-->
6
<section class="slice color-one">
7
 <div class="w-section inverse no-padding border_box">
8
   <div class="container">
9
     <div class="">
10
<!--******************************************-->   
11
12
<?php
13
$url = "{$_SERVER['HTTP_HOST']}{$_SERVER['REQUEST_URI']}";
14
15
if (strpos($url, 'customer_cdrs') != true) {
0 ignored issues
show
Bug Best Practice introduced by
It seems like you are loosely comparing strpos($url, 'customer_cdrs') of type integer to the boolean true. If you are specifically checking for 0, consider using something more explicit like === 0 instead.
Loading history...
16
   
17
?>
18
        <div class="col-md-12 no-padding">
19
	        <div class="col-md-8 no-padding">
20
                    <h2><? start_block_marker('page-title') ?><? end_block_marker() ?>	</h2>
21
	        
22
	        
23
                <span id="error_msg" class=" success"></span></div>
24
                 <div class="pull-right">
25
				</div>
26
<!--
27
ASTPP  3.0
28
Email host test
29
-->
30
	        <?php if (isset($test_email_flag) && $test_email_flag) { ?>
31
	                <div id="show_search" class="pull-right btn btn-warning btn margin-t-51"><a onclick="PopupCenter('<?=base_url()?>newmail/',resizable=1,width=580,height=700) "><font color="#fff"><i class= " fa fa-envelope-o"></i> &nbsp;Test Mail</font></a></div>
32
                <?php } ?>
33
34
<!--/*******************************/ -->
35
	        <div class="col-sm-4 no-padding">
36
		 <?php if (isset($batch_update_flag) && $batch_update_flag) { ?>
37
                <div id="updatebar" class="pull-right btn btn-update btn margin-t-51 margin-l-10"><i class="fa fa-retweet fa-lg"></i> <?php echo gettext('Batch Update'); ?></div>
38
                <?php } ?>
39
	        <?php if (isset($search_flag) && $search_flag) { ?>
40
	                <div id="show_search" class="pull-right btn btn-warning btn margin-t-51"><i class="fa fa-search"></i><?php echo gettext('Search'); ?></div>
41
                <?php } ?>
42
                <?php if (isset($back_flag) && $back_flag) {?>
43
					<ul class="breadcrumb">
44
                <li class="active pull-right">
45
				<a href="<?= $_SERVER['HTTP_REFERER']?>"> <i class="fa fa-fast-backward" aria-hidden="true"></i> Back</a>
46
				</li></ul>
47
				<!----------------------------------------------------------------------------------------------------->
48
                <?php } ?>
49
                
50
                </div>
51
        	<div class="col-md-12 no-padding"></div>
52
<!--******************************************-->        	
53
	  </div>
54
<?php } ?>
55
     </div>
56
    </div>
57
  </div>    
58
</section>
59
<section class="page-wrap">
60
<div id="toast-container" class="toast-top-right col-md-6" style="display:none;" >
61
 <div class="toast fa-check toast-success1">
62
        <button class="toast-close-button">
63
            <i class="fa fa-close"></i>
64
        </button>
65
        <div class="toast-message">
66
                    Success message
67
        </div>
68
  </div>
69
</div>
70
71
<div id="toast-container_error" class="toast-top-right col-md-6" style="display:none;z-index:999"> <!--  style="display:none;" -->
72
<div class="toast fa fa-times toast-danger1">
73
        <button class="toast-close-button">
74
            <i class="fa fa-close"></i>
75
        </button>
76
        <div class="toast-message">
77
                    Error message light
78
        </div>
79
  </div>
80
</div>
81
<?php
82
	$astpp_msg = false;
83
	$msg_type = "";
84
	$astpp_err_msg = $this->session->flashdata('astpp_errormsg');
85
	if ($astpp_err_msg) {
86
		$astpp_msg = ucfirst($astpp_err_msg);
87
		$msg_type = "error";
88
	}
89
    
90
   $astpp_notify_msg = $this->session->flashdata('astpp_notification');
91
   if ($astpp_notify_msg) {  
92
		$astpp_msg = ucfirst($astpp_notify_msg);
93
		$msg_type = "notification";
94
   }
95
   if ($astpp_msg) {
0 ignored issues
show
Bug Best Practice introduced by
The expression $astpp_msg of type string|false is loosely compared to true; this is ambiguous if the string can be empty. You might want to explicitly use !== false instead.

In PHP, under loose comparison (like ==, or !=, or switch conditions), values of different types might be equal.

For string values, the empty string '' is a special case, in particular the following results might be unexpected:

''   == false // true
''   == null  // true
'ab' == false // false
'ab' == null  // false

// It is often better to use strict comparison
'' === false // false
'' === null  // false
Loading history...
96
?>
97
<script> 
98
    var validate_ERR = '<?= $astpp_msg; ?>';
99
    var ERR_type = '<?= $msg_type; ?>';
100
    display_astpp_message(validate_ERR,ERR_type);
101
</script>
102
<?php } ?>
103
<? start_block_marker('content') ?><? end_block_marker() ?>
104
 
105
<?php include('footer.php'); ?>
106
107