-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Illegal offset type #3
Comments
Hello @eapunk Eric |
Here is an example <?php
class SomeClass
{
function method1()
{
$link = mysqli_connect("localhost", "my_user", "my_password", "world");
$query = "update linked_docs set deleted=1 where id='" . $_POST['signed_id'] . "'";
mysqli_query($link, $query);
}
} It gives
and no results found. |
I am not able to reproduce the bug for the moment,
and
and the result is ok : php builds/progpilot_dev20180513-195151.phar ../../../scripts/test.php
[
{
"source_name": [
"$query"
],
"source_line": [
7
],
"source_column": [
141
],
"source_file": [
"..\/..\/..\/scripts\/test.php"
],
"sink_name": "mysqli_query",
"sink_line": 8,
"sink_column": 233,
"sink_file": "..\/..\/..\/scripts\/test.php",
"vuln_name": "sql_injection",
"vuln_cwe": "CWE_89",
"vuln_id": "019489a9194e70f461cdf96fab1711dce0a1ccfa26e57e94b6c7220ba1fc448e",
"vuln_type": "taint-style"
}
] what is your exact environment and what is your script or command line to run progpilot ? Eric |
I am following
|
Hello @eapunk Eric |
There was effectively a big update on nikic/PHP-Parser, the structure of the nodes has changed.
but a lot of others subnodes are affected : I will look in details Eric |
It's fixed in the last version of ircmaxell/php-cfg |
I got 'Illegal offset type' error on fresh installation via composer.
It is not just a notice. Class method analysis failed.
nikic/php-parser v4.0.2 35b8caf75e791ba1b2d24fec1552168d72692b12
php v7.0
Solved by type casting to string
The text was updated successfully, but these errors were encountered: