Closed (outdated)
Project:
CAPTCHA
Version:
6.x-2.0-rc3
Component:
Miscellaneous
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Mar 2010 at 16:02 UTC
Updated:
10 Jan 2017 at 12:34 UTC
Jump to comment: Most recent
Comments
Comment #1
soxofaan commentedyou have to run your Drupal site's cron script, which (among other things) truncates the captcha_sessions table.
you can run cron manually from the status report
but you should automate this, which depends on your setup
more info: http://drupal.org/getting-started/6/install/cron
Comment #2
davide1982 commentedthanks very much for useful answer! it really helped!
Comment #4
yakker commentedI have exactly the same problem, but cron isn't touching the table. Anyone else? Any thoughts?
We're using.
Captcha 6.x-2.2
ReCaptcha 6.x-1.4
ImageCaptcha module is turned on, so is ReCaptcha mailhide. We've done no config or setup changes for a couple of weeks, but are getting slammed with "Duplicate Entry" and "Incorrect Key for Table" errors in the watchdog, and captcha checks are failing 100% of the time.
Comment #5
yakker commentedThe captcha_sessions table had crashed. We're unsure why. We repaired it and truncated it manually, now everything's dandy. I'm not technical enough to really muse about what happened, but we've had a rash of spam this past week, and the table itself had a block of about 300 requests from a single IP address. Could it be that a bot out there is crashing that table with how it's attacking captcha?
Comment #6
soxofaan commentedNote that the CAPTCHA's cron function will only remove sessions older than one day. So there will still be sessions younger than one 24 hours.
Please provide the precise error messages.
That is not easy to say. The most probable way an attacker could do to crash your table is making a lot of request in a short time. There are no real user "manipulatable" fields in that table that can help an attacker to crash the table.
Comment #7
yakker commentedThanks for the speedy interest, soxofaan. I was posting in two threads and didn't update this one with details (apologies). It's been a few days now and we look okay so far, but here are the error messages that we were getting, and some more details.
(Original Message...)
Working with our host tech support, we discovered that the captcha_sessions table had crashed. Still no idea how or why. He repaired that table, I emptied it, and we're back in business.
Just in case it helps anyone else, the major watchdog errors were (I deleted the VALUES below):
And:
Other concomitant factors:
1. There was an attempt to access a PHPMyAdmin installation on our domain. It was systematic - trying all version names as potential directories, etc.
2. There seemed to be a block of about 300 entries in captcha_sessions all from the same IP address for many different requests (I didn't ask for more detail).
3. cron.php did NOT clear captcha_sessions
4. clearing the cache did not clear captcha_sessions
5. we are only using Drupal's caching system - no others present.
Thanks to everyone who took the time to post their issues - it helped give us direction really quickly!
:)
Chris
Comment #8
elachlan commented