Issues (1751)

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.

lib/modules/mod_soap.php (4 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
<?php
2
    /******************************************************************
3
     mod_soap.php                                          Muze Ariadne
4
     ------------------------------------------------------------------
5
     Author: Muze ([email protected])
6
     Date: 25 november 2004
7
8
     Copyright 2004 Muze
9
10
     This file is part of Ariadne.
11
12
     Ariadne is free software; you can redistribute it and/or modify
13
     it under the terms of the GNU General Public License as published
14
     by the Free Software Foundation; either version 2 of the License,
15
     or (at your option) any later version.
16
17
     Ariadne is distributed in the hope that it will be useful,
18
     but WITHOUT ANY WARRANTY; without even the implied warranty of
19
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
     GNU General Public License for more details.
21
22
     You should have received a copy of the GNU General Public License
23
     along with Ariadne; if not, write to the Free Software
24
     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
25
     02111-1307  USA
26
27
    -------------------------------------------------------------------
28
29
     Description:
30
31
		PINP wrapper to the pear SOAP library.
32
33
    ******************************************************************/
34
35
	require_once("SOAP/Client.php");
36
	require_once("SOAP/Parser.php");
37
38
	class pinp_SOAP {
39
40
		public static function _Client($endpoint, $wsdl = false , $portName = false, $proxy_params=array() ) {
41
			return new pinp_SOAP_Client( $endpoint, $wsdl, $portName, $proxy_params);
42
		}
43
44
		public static function _Parser($xml, $encoding = SOAP_DEFAULT_ENCODING, $attachments=null) {
45
			return new pinp_SOAP_Parser( $xml, $encoding, $attachments );
46
		}
47
48
49
		public static function _Value($name, $type, $value, $namespaces=false) {
50
			if( $namespaces===false ) {
51
				return new SOAP_Value( $name, $type, $value);
52
			} else {
53
				return new SOAP_Value( $name, $type, $value, $namespaces );
54
			}
55
		}
56
57
		public static function _Header($name, $type, $value=null, $mustunderstand=0, $actor = 'http://schemas.xmlsoap.org/soap/actor/next') {
58
			return new SOAP_Header( $name, $type, $value, $mustunderstand, $actor );
59
		}
60
61
	}
62
63
	class pinp_SOAP_Parser extends SOAP_Parser {
64
65
		public function __construct( $xml, $encoding = SOAP_DEFAULT_ENCODING, $attachments=null ) {
66
			parent::SOAP_Parser( $xml, $encoding, $attachments );
0 ignored issues
show
The method SOAP_Parser() does not seem to exist on object<soap_parser>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
67
		}
68
69
		public function _getResponse() {
70
			return $this->getResponse();
0 ignored issues
show
The method getResponse() does not exist on pinp_SOAP_Parser. Did you maybe mean _getResponse()?

This check marks calls to methods that do not seem to exist on an object.

This is most likely the result of a method being renamed without all references to it being renamed likewise.

Loading history...
71
		}
72
73
		public function _parseMessage($nr=0) {
74
			$msg = &$this->message;
0 ignored issues
show
The property message does not exist. Did you maybe forget to declare it?

In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:

class MyClass { }

$x = new MyClass();
$x->foo = true;

Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion:

class MyClass {
    public $foo;
}

$x = new MyClass();
$x->foo = true;
Loading history...
75
			switch(strtolower($msg[$nr]["type"])) {
76
				case 'struct':
77
					$result = array();
78
					$children = explode("|", $msg[$nr]["children"]);
79
					$to_array = array();
80
					foreach($children as $child) {
81
						$key = $msg[$child]["name"];
82
						$value = $this->_parseMessage($child);
83
						if ($result[$key]) {
84
							if (!$to_array[$key]) {
85
								$temp = $result[$key];
86
								$result[$key] = array();
87
								$result[$key][] = $temp;
88
								$to_array[$key] = true;
89
							}
90
							$result[$key][] = $value;
91
						} else {
92
							$result[$key] = $value;
93
						}
94
					}
95
				break;
96
				case 'string':
97
				default:
98
					$result = $msg[$nr]["cdata"];
99
				break;
100
			}
101
			return $result;
102
		}
103
	}
104
105
106
	class pinp_SOAP_Client extends SOAP_Client {
107
108
		public function __construct($endpoint, $wsdl = false, $portName = false, $proxy_params=array()) {
109
			parent::SOAP_Client( $endpoint, $wsdl, $portName, $proxy_params );
110
		}
111
112
		public function _call( $function, $arguments=false, $namespace=false, $soapAction=false ) {
113
			return $this->call( $function, $arguments, $namespace, $soapAction );
114
		}
115
116
		public function _addHeader($soap_value) {
117
			return $this->addHeader($soap_value);
118
		}
119
120
		public function _isError($value) {
121
			return $this->isError($value);
122
		}
123
124
		public function _isWarning($value) {
125
			return $this->isWarning($value);
126
		}
127
128
		public function _errorMessage($error) {
129
			if (is_object($error) && get_class($error) == "soap_fault") {
130
				$result = $error->message;
0 ignored issues
show
The property message does not seem to exist in soap_fault.

An attempt at access to an undefined property has been detected. This may either be a typographical error or the property has been renamed but there are still references to its old name.

If you really want to allow access to undefined properties, you can define magic methods to allow access. See the php core documentation on Overloading.

Loading history...
131
			} else {
132
				$result = false;
133
			}
134
			return $result;
135
		}
136
137
	}
138