|Keep It Simple, Stupid|
Re: UTF8 related proof of concept exploit released at T-DOSEby graff (Chancellor)
|on Oct 14, 2007 at 22:26 UTC||Need Help??|
Given that the exploit relies on using byte sequences that cannot be interpreted as valid utf8 strings, I would think that anyone writing a script that uses the "-T" flag, and expects to handle utf8 data from a tainted source, would prefer to read such input as ":raw", and always use Encode::decode() to convert it to perl-internal utf8 form.
And in doing so, it would usually be prudent to do it like this (adapting the sample code given in the OP):