Issues (12)

Security Analysis    not enabled

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/Crate/PDO/PDOStatementImplementationPhp7.php (2 issues)

Labels
Severity
1
<?php
2
/**
3
 * Licensed to CRATE Technology GmbH("Crate") under one or more contributor
4
 * license agreements.  See the NOTICE file distributed with this work for
5
 * additional information regarding copyright ownership.  Crate licenses
6
 * this file to you under the Apache License, Version 2.0 (the "License");
7
 * you may not use this file except in compliance with the License.  You may
8
 * obtain a copy of the License at
9
 *
10
 * http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing, software
13
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
14
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the
15
 * License for the specific language governing permissions and limitations
16
 * under the License.
17
 *
18
 * However, if you have executed another commercial license agreement
19
 * with Crate these terms will supersede the license and you may use the
20
 * software solely pursuant to the terms of the relevant commercial agreement.
21
 */
22
23
declare(strict_types=1);
24
25
namespace Crate\PDO;
26
27
use function func_get_args;
28
29
/**
30
 * @internal
31
 */
32
trait PDOStatementImplementationPhp7
33
{
34
    /**
35
     * @deprecated Use one of the fetch- or iterate-related methods.
36
     *
37
     * @param int   $fetchMode
38
     * @param mixed $arg2
39
     * @param mixed $arg3
40
     */
41
    public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null): bool
42
    {
43
        return $this->doSetFetchMode(...func_get_args());
0 ignored issues
show
func_get_args() is expanded, but the parameter $mode of Crate\PDO\PDOStatementIm...nPhp7::doSetFetchMode() does not expect variable arguments. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

43
        return $this->doSetFetchMode(/** @scrutinizer ignore-type */ ...func_get_args());
Loading history...
44
    }
45
46
    /**
47
     * @deprecated Use fetchAllNumeric(), fetchAllAssociative() or fetchFirstColumn() instead.
48
     *
49
     * @param int|null $fetchMode
50
     * @param mixed    $fetchArgument
51
     * @param mixed    $ctorArgs
52
     *
53
     * @return mixed[]
54
     */
55
    public function fetchAll($fetchMode = null, $fetchArgument = null, $ctorArgs = null)
56
    {
57
        return $this->doFetchAll(...func_get_args());
0 ignored issues
show
func_get_args() is expanded, but the parameter $fetch_style of Crate\PDO\PDOStatementIm...ationPhp7::doFetchAll() does not expect variable arguments. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

57
        return $this->doFetchAll(/** @scrutinizer ignore-type */ ...func_get_args());
Loading history...
58
    }
59
60
    /**
61
     * @param int|null          $mode
62
     * @param int|string|object $params
63
     *
64
     * @return bool
65
     */
66
    abstract public function doSetFetchMode($mode, $params = null);
67
68
    /**
69
     * @param int|null          $fetch_style
70
     * @param int|string|object $fetch_argument
71
     * @param mixed[]           $ctor_args
72
     *
73
     * @return mixed[]
74
     */
75
    abstract public function doFetchAll($fetch_style = null, $fetch_argument = null, $ctor_args = null);
76
}
77