[text/plain 1.6k]
On Mon Apr 24 04:37:04 2006, kane[...]xs4all.nl wrote:
> The problem is with 'eval $_' -- i've made a minor change to M::L::C
> that captures the whole string from the regex and evals that, making
> it taint safe (not necessarily secure of course):
Well, it's not perfect, but it lets my code run. I think I might be
able to work with that so long as I put a caveat in the Class::CGI docs.
To be fair, I might just internally reimplement the portions I need so
I can skip the version check altogether.
<snip>
> However, as you see from the original comments, this regex was
> originally taken from the EU::MM documentation, which means it's
> probably present in quite a few more modules,
> but at least in EU::MM -- whatever fix we can come up with that's
> 'good enough' should at least be reported back there.
>
> Do you think this patch is workable?
When I call this:
check_install( module => 'Data::Dumper' );
I'm not stating a particular version is required. Thus, if a version is
not requested, could we skip the version check altogether? I've
attached a patch which does that. This eliminates the security hole for
those not requiring a particular version (and the code runs a bit faster
as a bonus). It does introduce a tiny change, though. The return value
no longer contains the version unless a specific version was requested.
This patch would completely solve my immediate problem. However,
whether or not it's suitable for your code or your users is another story.
As for the EU::MM stuff, I've seen that and I've been trying to work on
some code which solves the problem. Unfortunately, it's a very
difficult problem to solve.
Cheers,
Ovid
[application/octet-stream 4.7k]
Message body not shown because it is too large or is not plain text.