Issues (1066)

Security Analysis    7 potential vulnerabilities

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

  Cross-Site Scripting (1)
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 (3)
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 (3)
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.

docs/plugin.example.php (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
<?php
2
/**
3
 * Example of PhpQuery plugin.
4
 *
5
 * Load it like this:
6
 * PhpQuery::plugin('example')
7
 * PhpQuery::plugin('example', 'example.php')
8
 * pq('ul')->plugin('example')
9
 * pq('ul')->plugin('example', 'example.php')
10
 *
11
 * Plugin classes are never intialized, just method calls are forwarded
12
 * in static way from PhpQuery.
13
 *
14
 * Have fun writing plugins :)
15
 */
16
17
/**
18
 * PhpQuery plugin class extending PhpQuery object.
19
 * Methods from this class are callable on every PhpQuery object.
20
 *
21
 * Class name prefix '\PhpQuery\Plugin\' must be preserved.
22
 */
23
abstract class PhpQuery_Plugin_example {
24
	/**
25
	 * Limit binded methods.
26
	 *
27
	 * null means all public.
28
	 * array means only specified ones.
29
	 *
30
	 * @var array|null
31
	 */
32
	public static $PhpQueryMethods = null;
33
	/**
34
	 * Enter description here...
35
	 *
36
	 * @param \PhpQueryObject $self
37
	 */
38
	public static function example($self, $arg1) {
39
		// this method can be called on any PhpQuery object, like this:
40
		// pq('div')->example('$arg1 Value')
0 ignored issues
show
Unused Code Comprehensibility introduced by
70% 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...
41
42
		// do something
43
		$self->append('Im just an example !');
44
		// change stack of result object
45
		return $self->find('div');
46
	}
47
	protected static function helperFunction() {
48
		// this method WONT be avaible as PhpQuery method,
49
		// because it isn't publicly callable
50
	}
51
}
52
53
/**
54
 * PhpQuery plugin class extending PhpQuery static namespace.
55
 * Methods from this class are callable as follows:
56
 * PhpQuery::$plugins->staticMethod()
57
 *
58
 * Class name prefix 'PhpQueryPlugin_' must be preserved.
59
 */
60
abstract class PhpQueryPlugin_example {
61
	/**
62
	 * Limit binded methods.
63
	 *
64
	 * null means all public.
65
	 * array means only specified ones.
66
	 *
67
	 * @var array|null
68
	 */
69
	public static $PhpQueryMethods = null;
70
	public static function staticMethod() {
71
		// this method can be called within PhpQuery class namespace, like this:
72
		// PhpQuery::$plugins->staticMethod()
0 ignored issues
show
Unused Code Comprehensibility introduced by
63% 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...
73
	}
74
}