WWW::Form is a "simple and extendable module that allows developers to handle HTML form validation and display flexibly and consistently."
The WWW::Form module contains several bugs which opens the possibility for a cross site scripting attack.
Credit:
The information has been provided by Shlomi Fish
Vulnerable Systems:
* WWW::Form version 1.12 and prior
Immune Systems:
* WWW::Form version 1.13
The CPAN WWW::Form contains sections of code that open the possibility for a cross-site-scripting attack. An excerpt from the latest vulnerable version is presented below:
1160: my $inputHTML = "< input type='$field->{type}'"
1161:. " name='$fieldName' id='$fieldName' value='";
1162:
1163: if ($field->{type} eq 'checkbox') {
1164: $inputHTML .= $field->{defaultValue};
1165: }
1166: else {
1167: $inputHTML .= $field->{value};
1168: }
1314: $textarea .= ">";
1315:
1316: $textarea .= $field->{value};
1317:
1318: $textarea .= "< /textarea>";
Patch Availability:
There is no patch available but upgrading to version 1.13 solves the problem.
Please enable JavaScript to view the comments powered by Disqus.
blog comments powered by