Issues (7)

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.

src/AppserverIo/Properties/PropertiesInterface.php (1 issue)

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
<?php
2
3
/**
4
 * \AppserverIo\Properties\PropertiesInterface
5
 *
6
 * NOTICE OF LICENSE
7
 *
8
 * This source file is subject to the Open Software License (OSL 3.0)
9
 * that is available through the world-wide-web at this URL:
10
 * http://opensource.org/licenses/osl-3.0.php
11
 *
12
 * PHP version 5
13
 *
14
 * @author    Tim Wagner <[email protected]>
15
 * @copyright 2015 TechDivision GmbH <[email protected]>
16
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
17
 * @link      http://github.com/appserver-io/properties
18
 * @link      http://www.appserver.io
19
 */
20
21
namespace AppserverIo\Properties;
22
23
use AppserverIo\Collections\MapInterface;
24
25
/**
26
 * The interface for all property implementations.
27
 *
28
 * @author    Tim Wagner <[email protected]>
29
 * @copyright 2015 TechDivision GmbH <[email protected]>
30
 * @license   http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
31
 * @link      http://github.com/appserver-io/properties
32
 * @link      http://www.appserver.io
33
 */
34
interface PropertiesInterface extends MapInterface
35
{
36
37
    /**
38
     * Reads a property list (key and element pairs) from the passed file.
39
     *
40
     * @param string  $file     The path and the name of the file to load the properties from
41
     * @param boolean $sections Has to be TRUE to parse the sections
42
     *
43
     * @return \AppserverIo\Properties\Properties The initialized properties
44
     * @throws \AppserverIo\Properties\PropertyFileParseException Is thrown if an error occurse while parsing the property file
45
     * @throws \AppserverIo\Properties\PropertyFileNotFoundException Is thrown if the property file passed as parameter does not exist in the include path
46
     */
47
    public function load($file, $sections = false);
48
49
    /**
50
     * Stores the properties in the property file. This method is NOT using the include path for storing the file.
51
     *
52
     * @param string $file The path and the name of the file to store the properties to
53
     *
54
     * @return void
55
     *
56
     * @throws \AppserverIo\Properties\PropertyFileStoreException Is thrown if the file could not be written
57
     * @todo Actually only properties without sections will be stored, if a section is specified, then it will be ignored
0 ignored issues
show
Comment refers to a TODO task

This check looks TODO comments that have been left in the code.

``TODO``s show that something is left unfinished and should be attended to.

Loading history...
58
     */
59
    public function store($file);
60
61
    /**
62
     * Searches for the property with the specified key in this property list.
63
     *
64
     * @param string $key     Holds the key of the value to return
65
     * @param string $section Holds a string with the section name to return the key for (only matters if sections is set to TRUE)
66
     *
67
     * @return string Holds the value of the passed key
68
     * @throws \AppserverIo\Lang\NullPointerException Is thrown if the passed key, or, if sections are TRUE, the passed section is NULL
69
     */
70
    public function getProperty($key, $section = null);
71
72
    /**
73
     * Calls the HashMap method add.
74
     *
75
     * @param string $key     Holds the key of the value to return
76
     * @param mixed  $value   Holds the value to add to the properties
77
     * @param string $section Holds a string with the section name to return the key for (only matters if sections is set to TRUE)
78
     *
79
     * @return void
80
     * @throws \AppserverIo\Lang\NullPointerException Is thrown if the passed key, or, if sections are TRUE, the passed section is NULL
81
     */
82
    public function setProperty($key, $value, $section = null);
83
84
    /**
85
     * Returns all key values as an array.
86
     *
87
     * @return array The keys as array values
88
     */
89
    public function getKeys();
90
91
    /**
92
     * Merges the passed properties into the actual instance. If override
93
     * flag is set to TRUE, existing properties will be overwritten.
94
     *
95
     * @param \AppserverIo\Properties\PropertiesInterface $properties The properties to merge
96
     * @param boolean                                     $override   TRUE if existing properties have to be overwritten, else FALSE
97
     *
98
     * @return void
99
     */
100
    public function mergeProperties(PropertiesInterface $properties, $override = false);
101
}
102