Issues (538)

Security Analysis    no request data  

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

  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.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  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.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  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.
  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.
  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.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
  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.
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  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.
  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.
  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.
  Header Injection
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/XML/samlp/AbstractStatusResponse.php (5 issues)

1
<?php
2
3
declare(strict_types=1);
4
5
namespace SimpleSAML\SAML2\XML\samlp;
6
7
use DOMElement;
8
use SimpleSAML\SAML2\Constants as C;
0 ignored issues
show
The type SimpleSAML\SAML2\Constants was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
use SimpleSAML\SAML2\Type\SAMLAnyURIValue;
10
use SimpleSAML\SAML2\Type\SAMLDateTimeValue;
0 ignored issues
show
The type SimpleSAML\SAML2\Type\SAMLDateTimeValue was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
use SimpleSAML\SAML2\XML\saml\Issuer;
12
use SimpleSAML\XMLSchema\Type\IDValue;
0 ignored issues
show
The type SimpleSAML\XMLSchema\Type\IDValue was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
13
use SimpleSAML\XMLSchema\Type\NCNameValue;
0 ignored issues
show
The type SimpleSAML\XMLSchema\Type\NCNameValue was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
14
15
/**
16
 * Base class for all SAML 2 response messages.
17
 *
18
 * Implements samlp:StatusResponseType. All of the elements in that type are
19
 * stored in the \SimpleSAML\SAML2\XML\AbstractMessage class, and this class is therefore more
20
 * or less empty. It is included mainly to make it easy to separate requests from
21
 * responses.
22
 *
23
 * @package simplesamlphp/saml2
24
 */
25
abstract class AbstractStatusResponse extends AbstractMessage
26
{
27
    /**
28
     * Constructor for SAML 2 response messages.
29
     *
30
     * @param \SimpleSAML\XMLSchema\Type\IDValue $id
31
     * @param \SimpleSAML\SAML2\XML\samlp\Status $status
32
     * @param \SimpleSAML\SAML2\Type\SAMLDateTimeValue $issueInstant
33
     * @param \SimpleSAML\SAML2\XML\saml\Issuer|null $issuer
34
     * @param \SimpleSAML\XMLSchema\Type\NCNameValue|null $inResponseTo
35
     * @param \SimpleSAML\SAML2\Type\SAMLAnyURIValue|null $destination
36
     * @param \SimpleSAML\SAML2\Type\SAMLAnyURIValue|null $consent
37
     * @param \SimpleSAML\SAML2\XML\samlp\Extensions|null $extensions
38
     *
39
     * @throws \Exception
40
     */
41
    protected function __construct(
42
        IDValue $id,
43
        protected Status $status,
44
        SAMLDateTimeValue $issueInstant,
45
        ?Issuer $issuer = null,
46
        protected ?NCNameValue $inResponseTo = null,
47
        ?SAMLAnyURIValue $destination = null,
48
        ?SAMLAnyURIValue $consent = null,
49
        ?Extensions $extensions = null,
0 ignored issues
show
The type SimpleSAML\SAML2\XML\samlp\Extensions was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
50
    ) {
51
        parent::__construct($id, $issuer, $issueInstant, $destination, $consent, $extensions);
52
    }
53
54
55
    /**
56
     * Determine whether this is a successful response.
57
     *
58
     * @return bool true if the status code is success, false if not.
59
     */
60
    public function isSuccess(): bool
61
    {
62
        return strval($this->status->getStatusCode()->getValue()) === C::STATUS_SUCCESS;
63
    }
64
65
66
    /**
67
     * Retrieve the ID of the request this is a response to.
68
     *
69
     * @return \SimpleSAML\XMLSchema\Type\NCNameValue|null The ID of the request.
70
     */
71
    public function getInResponseTo(): ?NCNameValue
72
    {
73
        return $this->inResponseTo;
74
    }
75
76
77
    /**
78
     * Retrieve the status code.
79
     *
80
     * @return \SimpleSAML\SAML2\XML\samlp\Status The status code.
81
     */
82
    public function getStatus(): Status
83
    {
84
        return $this->status;
85
    }
86
87
88
    /**
89
     * Convert this message to an unsigned XML document.
90
     * This method does not sign the resulting XML document.
91
     */
92
    protected function toUnsignedXML(?DOMElement $parent = null): DOMElement
93
    {
94
        $e = parent::toUnsignedXML($parent);
95
96
        if ($this->getInResponseTo() !== null) {
97
            $e->setAttribute('InResponseTo', $this->getInResponseTo()->getValue());
98
        }
99
100
        $this->getStatus()->toXML($e);
101
102
        return $e;
103
    }
104
}
105