-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
get_version is dangerous code
Beware of the security issues for cpan testers or unchecked sources, as
the '$VERSION = ...' line in a .pm file is simply evaluated, without
any sanity check.
Allowed can only a $ver_qr with /^v? [\d_\.]+/ and /qv\($ver_qr\)/,
but for sure not any sub call or ; or eval
We cannot use Safe as it needs to run with miniperl, but at least a security sanity check is required.
Metadata
Metadata
Assignees
Labels
No labels