Added a bad CAPTCHA vulnerability#69
Conversation
This added vulnerability is aimed at playing with image recognition/OCR to guess bad CAPTCHA codes.
|
Anyone got any time to go through this and have a look at it? Would need updating to include impossible level. |
|
Please review the following code: .DS_Store CAPTCHA Example<?php
session_start();
include("simple-php-captcha.php");
?>
<?php
'min_length' => 5,
'max_length' => 5,
'backgrounds' => array(image.png', ...),
'fonts' => array('font.ttf', ...),
'characters' => 'ABCDEFGHJKLMNPRSTUVWXYZabcdefghjkmnprstuvwxyz23456789',
'min_font_size' => 28,
'max_font_size' => 28,
'color' => '#666',
'angle_min' => 0,
'angle_max' => 10,
'shadow' => true,
'shadow_color' => '#fff',
'shadow_offset_x' => -1,
'shadow_offset_y' => 1
));
>
Written by Cory LaViska for A Beautiful Site, LLC. (http://abeautifulsite.net/) Licensed under the MIT license: http://opensource.org/licenses/MIT Demo and Usagehttp://labs.abeautifulsite.net/simple-php-captcha/ Attribution
Help - Insecure CAPTCHA
|
|
@anshika-panwar-05-code I'm not sure what this is supposed to be, but if you are submitting this as some new code, please do it as a standard pull request rather than trying to add code to a description. |
This added vulnerability is aimed at playing with image recognition/OCR to guess/identify bad CAPTCHA codes. As opposite to "Insecure CAPTCHA", there's no vulnerability on the validation logic but instead the CAPTCHA is generated using weak configurations.
It also has the advantage that can be used in isolated environments where the DVWA doesn't have Internet access and ReCaptcha can't be used. The library used is https://github.com/claviska/simple-php-captcha (MIT license).
Let me know if you think it would be a good addition or if it need some aspect to be worked on. Otherwise I left it here for if someone else has a requirement similar to this one.