Description
The escape_dangerous_chars function in CGI::Lite 2.0 and earlier does not correctly remove special characters including (1) "\" (backslash), (2) "?", (3) "~" (tilde), (4) "^" (carat), (5) newline, or (6) carriage return, which could allow remote attackers to read or write arbitrary files, or execute arbitrary commands, in shell scripts that rely on CGI::Lite to filter such dangerous inputs.
References
- http://use.perl.org/~cbrooks/journal/10542
- 20030211 Security bug in CGI::Lite::escape_dangerous_chars() function mailing-list
- 6833 vdb-entry
- 3237 third-party-advisory
- cgilite-shell-command-execution(11308) vdb-entry
- http://search.cpan.org/~smylers/CGI-Lite-2.02/Lite.pm
- 20030211 Security bug in CGI::Lite::escape_dangerous_chars() function mailing-list