by Slackwise · 15y ago · 0 comments
An example would be https://sso.state.mi.us/som/dch/enroll/reg_page1.jsp (You can enter any fake name/email, this is only step one of the registration script. The next page has the captch in question.)
The captcha is plaintext, right on the page. The data from the captcha isn't even sent to the server, it is processed locally via JavaScript.
So, the bots don't even have to do anything, but humans have to input a meaningless number...
<input type="text" name="inputNumber" class="entry-field" size="5" tabindex="3">
<!-- ... -->
document.write('<div id="layerNum" class="verifyNumber" align="center">');
document.write('<b>'+str+'</b>');
document.write('<img src="generateGIF.jsp?number='+str+'">');
document.write('</div>');
document.write('<input size="5" type="hidden" name="rdNumber" value="'+str+'">');
<!-- ... -->
<input type="submit" value="Continue" name="submit" onclick="return Valid();">
<!-- ... -->
function Valid(){
// ...
if(chkRandomNumber()){
return true;
}else{
return false;
}
// ...
}
function chkRandomNumber(){
str1=document.all.rdNumber.value;
str2=document.all.inputNumber.value;
if(str1!=str2){
alert("Please check and type the number as shown in the box");
return false;
}else{
return true;
}
}You're assuming the client/employer can actually distinguish between the two. I'm not sure that's the case for many jobs.
The end result, spam disappeared and we didn't add much pain to our customers.
Most spammers likely don't go check every website to see how they can break the captcha, they just set up a script to go fill out forms and submit them.
They're solution, while not being the "awesome, technologically advanced solution", if it prevented spam, was a working solution without the complexity of actual captchas.
Furthermore, as captchas have been known to be broken, who's to say that the spammers tool doesn't recognize valid, commly-used captchas and break them automatically? As opposed to a field that says "Type the following word", which the spammers don't (can't easily?) check for.
When CAPTCHA is just simulated on the client, then it's clear indication of malicious intent (of getting paid for faking real job).
That said, CAPTCHA should not be used at all. But torturing users with CAPTCHA while allowing bypass access to bots is more advanced level of evil.