Another possible workaround is to disable some validation and/or annotation settings. It's been a while since I've' used Eclipse for PHP development, but I remember disabling some validations/annotations for classes for inheritance increased responsiveness significantly.
(I quit using Eclipse because of the ffing subversion mess).
It's a bit more expensive though. Unless you need to use two or three Jetbrain IDE products (eg java, phpstorm, pycharm), seperate ones can be cheaper.
The blanket htmlspecialchars would prevent the second case, but is likely incorrect. It would be better to simply htmlspecialchars (edit AND scheme-filter) the $1 in the substitution.
Because they likely did not anticipate this issue to be a vulnerability. As seen from the article, the distribution function works fine for the assumed "normal case" indices.
The bucket where a numeric index ends up depends on it's value (nIndex = h & ht->nTableMask; in zend_hash_index_update_or_next_insert in zend_hash.c). String keys are hashed via zend_inline_hash_func (in zend_hash.h).
Then why not simply use htmlspecialchars with ENT_QUOTES and UTF-8 specified? It will check the bytestream for invalid characters. You can even get a substitution character (vs empty string) in 5.4.0.
But if you use htmlspecialchars, the handful of characters that it converts can be processed equivalently in the most common Web character sets, including UTF-8 and ISO-8859.
While this is correct, it is not right.
If you specify UTF-8, htmlspecialchars in modern PHP will do some additional checking to prevent certain overlong encodings.
A 0xC0 for example will swallow the next byte in IE6 (of course, what else) making it treat subsequent bytes out of context.
Depending the injection location you can work with UNION (see BTMPL's response) or use the MySQL function SLEEP. This way you can test eg passwd characters by the response time of the server.
Another possible workaround is to disable some validation and/or annotation settings. It's been a while since I've' used Eclipse for PHP development, but I remember disabling some validations/annotations for classes for inheritance increased responsiveness significantly.
(I quit using Eclipse because of the ffing subversion mess).
It's a bit more expensive though. Unless you need to use two or three Jetbrain IDE products (eg java, phpstorm, pycharm), seperate ones can be cheaper.
You forgot to remove the var_dump.
Did you read the OP? It is possible to create a file that is both a valid image and a valid (or at least executable) php file.
You MUST set the project to remote host webserver, files via network share / mounted drive. PHPstorm will then setup a local copy.
caller casts as necessary
In addition, 6 will be supported (security-wise) until Drupal 8's release.
Learn how to read RFCs and other standards documents.
I don't see this on Windows 7. Could it be OS specific?
Personally, I still think phpstorm beats Netbeans. And as it's only ~EUR 90 it isn't that big of a deal.
Indeed and it will also allow autocomplete on the var.
The first part of your comment is dangerous.
Escaped values in the query can still be used for SQL injection if they are UNQUOTED eg SELECT foo FROM bar WHERE id = $id.
I've only read some parts of the code, but I doubt that this is a safe implementation.
[img]url here can run out of attribute values and may contain javascript scheme[/img]
eg
The blanket htmlspecialchars would prevent the second case, but is likely incorrect. It would be better to simply htmlspecialchars (edit AND scheme-filter) the $1 in the substitution.
See http://www.nruns.com/_downloads/advisory28122011.pdf :
"An attacker with a Gigabit connection can keep about 10.000 i7 cores busy"
They calculated this assuming PHP uses the DJBX33A hash.
Because they likely did not anticipate this issue to be a vulnerability. As seen from the article, the distribution function works fine for the assumed "normal case" indices.
The bucket where a numeric index ends up depends on it's value (nIndex = h & ht->nTableMask; in zend_hash_index_update_or_next_insert in zend_hash.c). String keys are hashed via zend_inline_hash_func (in zend_hash.h).
I always think in strings as having a datatype. The presence of tags itself is irrelevant in determining whether the datatype is HTML.
If you have pure text there are no HTML tags.
Then why not simply use htmlspecialchars with ENT_QUOTES and UTF-8 specified? It will check the bytestream for invalid characters. You can even get a substitution character (vs empty string) in 5.4.0.
If you have pure text, you should ESCAPE, not FILTER the data. By escaping you preserve meaning.
Why the mb_convert_encoding?
While this is correct, it is not right.
If you specify UTF-8, htmlspecialchars in modern PHP will do some additional checking to prevent certain overlong encodings.
A 0xC0 for example will swallow the next byte in IE6 (of course, what else) making it treat subsequent bytes out of context.
PHPStorm also works with remote servers where project files are indexed locally and auto-uploaded on change.
I don't think is useful for the OPs situation, where multiple users work on the remote files.
Depending the injection location you can work with UNION (see BTMPL's response) or use the MySQL function SLEEP. This way you can test eg passwd characters by the response time of the server.
Perhaps the huge price tag allows them to offer a free version (PDT).