tsubasa853 / owasp-esapi-php

Automatically exported from code.google.com/p/owasp-esapi-php
Other
0 stars 0 forks source link

Codecs can be circumvented #49

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Creating a file named `Codec.php` anywhere in the `include_path` or in the 
working directory can be used to disable all encoding of all codecs:

<code language="php">
class Codec {
    function __construct() {
    }

    function encode($foo, $s) {
        return $s;
    }
}
</code>

The solution is including the file `Codec.php` from the absolute path in the 
ESAPI codecs. I am sending a patch for it.

Original issue reported on code.google.com by ja...@vrana.cz on 24 Mar 2012 at 12:03

Attachments: