CaoLP / recaptcha

Automatically exported from code.google.com/p/recaptcha
0 stars 0 forks source link

Recaptcha not validating even when input is correct #66

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Unknown, Started recently with no changes having been made
2.
3.

What is the expected output? What do you see instead?
When the correct captcha is entered the user should be re-directed but the
recaptcha is permanently failing.

What version of the product are you using? On what operating system?
reCaptcha: 1.10
php: 5.3.0 
Linux 

Please provide any additional information below.
I have run the code through a debugger and from what i can see the response
from the server is ""HTTP/1.0 404 Not Found\r\nContent-Type: text/html;
charset=UTF-8\r\nDate: Wed, 24 Mar 2010 09:58:59 GMT\r\nServer:
zwbk\r\nCache-Control: private, x-gzip-ok=\"\"\r\nContent-Length:
1360\r\nX-XSS-Protection: 0"
"\n\n<html><head>\n<meta http-equiv=\"content-type\"
content=\"text/html;charset=utf-8\">\n<title>404 Not
Found</title>\n<style><!--\nbody {font-family: arial,sans-serif}\ndiv.nav
{margin-top: 1ex}\ndiv.nav A {font-size: 10pt; font-family:
arial,sans-serif}\nspan.nav {font-size: 10pt; font-family:
arial,sans-serif; font-weight: bold}\ndiv.nav A,span.big {font-size: 12pt;
color: #0000cc}\ndiv.nav A {font-size: 10pt; color: black}\nA.l:link
{color: #6f6f6f}\nA.u:link {color: green}\n//--></style>\n<script><!--\nvar
rc=404;\n//-->\n</script>\n</head>\n<body text=#000000
bgcolor=#ffffff>\n<table border=0 cellpadding=2 cellspacing=0
width=100%><tr><td rowspan=3 width=1% nowrap>\n<b><font face=times
color=#0039b6 size=10>G</font><font face=times color=#c41200
size=10>o</font><font face=times color=#f3c518 size=10>o</font><font
face=times color=#0039b6 size=10>g</font><font face=times color=#30a72f
size=10>l</font><font face=times color=#c41200
size=10>e</font>&nbsp;&nbsp;</b>\n<td>&nbsp;</td></tr>\n<tr><td
bgcolor=\"#3366cc\"><font face=arial,sans-serif
color=\"#ffffff\"><b>Error</b></td></tr>\n<tr><td>&nbsp;</td></tr></table>\n<blo
ckquote>\n<H1>Not
Found</H1>\nThe requested URL <code>/verify</code> was not found on this
server.\n\n<p>\n</blockquote>\n<table width=100% cellpadding=0
cellspacing=0><tr><td bgcolor=\"#3366cc\"><img alt=\"\" width=1
height=4></td></tr></table>\n</body></html>\n""

Original issue reported on code.google.com by gh.le.r...@gmail.com on 24 Mar 2010 at 10:16

GoogleCodeExporter commented 8 years ago
Can you give us the debugging output for the request?

Original comment by ben.maurer on 24 Mar 2010 at 1:15

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sorry but it doesn't generate logs. But i have narrowed down the problem to the
$answers response from the server. It appears that the array values for 
$answers[0]
and $answers[1] are both null which triggers the $recaptcha_response->is_valid =
false; else statement on line 188 of recaptchalib.php. 

Original comment by gh.le.r...@gmail.com on 24 Mar 2010 at 1:36

GoogleCodeExporter commented 8 years ago
Hi,

Are you sending a Host header? It would really help us if we could see the full 
HTTP
request that you are making.

Original comment by ben.maurer on 24 Mar 2010 at 6:24

GoogleCodeExporter commented 8 years ago
Here is the request that I'm making. This is generated using my debugging 
software
hence the localhost IP address but i am experiencing this problem on my live 
server
too.  

("POST /verify HTTP/1.0\r\nHost: 209.85.227.104\r\nContent-Type:
application/x-www-form-urlencoded;\r\nContent-Length: 387\r\nUser-Agent:
reCAPTCHA/PHP\r\n\r\nprivatekey=6LckCAwAAAAAAFxXaTkbxtMz4-3VIO9aKbS9-wa7&remotei
p=127.0.0.1&challenge=02O4pPia6HeHDw2_wfUmt1Sg_pNq7zSyOd8aU0ZOxvCCIyinb9AhymTJcV
7jOVhYN64fPDvoEEWoEFcIvy9xDrhx-l6DHWPCpB8-KIvi8lPNGk_IIlI8SKQV-mIBouNgX4PiJLvLUU
kHpIFmdqB6hfScg7RM2EC5TyfSCWuFhwWT1XMihvKdUZg6FiIO5hMm8_wH_ZX1hxvulQF198VtUNzla_
30nNNctC6AKnOUodheNP3qMO--KN9zy9By9A66_H1oOIPpq23T5h9jBi0K-FduATMeoB&response=an
d+merrit")

Original comment by gh.le.r...@gmail.com on 27 Mar 2010 at 9:28

GoogleCodeExporter commented 8 years ago
Thanks. The issue is that you aren't sending a Host header of 
api-verify.recaptcha.net. 
The latest version of the PHP plugin shouldn't be doing this, did you make 
custom 
modifications?

Original comment by ben.maurer on 27 Mar 2010 at 6:05

GoogleCodeExporter commented 8 years ago
I must have been without realizing it. I have just replaced my recaptchalib.php 
with
a new copy and everything seems to be working again. Thank you for your help and
patience. 

Original comment by gh.le.r...@gmail.com on 28 Mar 2010 at 7:31

GoogleCodeExporter commented 8 years ago
hmm interesting

but http://buydigicamera.com and http://swatchesmen.com sites worked!

Original comment by wordpresspremiumus@gmail.com on 16 Sep 2010 at 12:42

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I'm getting the same issue on ASP.Net using the latest recaptcha plugin

Original comment by siddhartha.veedaluru@gmail.com on 20 Dec 2011 at 2:43