Skip Menu |

This queue is for tickets about the Authen-Captcha CPAN distribution.

Report information
The Basics
Id: 15259
Status: resolved
Priority: 0/
Queue: Authen-Captcha

People
Owner: Nobody in particular
Requestors: beffcon [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 1.023_001



Subject: taint mode problem
Hi, Joshua and Seth! Thank you for this nice module Authen::Captcha (1.023). I came across the same problem about taint mode as posted in the previous bug report. I'm just a beginner of Perl, and according to my limited experience, I think the problem is that $data_code or $png_file should have been untainted before unlink($png_file) is called. This can be found in line 256,261,359 of Authen/Captcha.pm. My workaround is to untaint $data_code: if ( $data_code =~ /^([\da-f]{32}$/i ) { $data_code = $1; } else { print "tainted value!\n"; exit; } $png_file = ... unlink($png_file) ... I'm looking forward to the solution of this problem. Beff
Hi! Thanks for your report. We've just uploaded 1.024 that addresses this issue to CPAN and it will hit mirrors in a couple of hours. Have a nice day! Lubo