Opened 8 months ago

Closed 8 months ago

#24701 closed defect (fixed)

Unhandled error on extracting CAPTCHA solution from malicious requests

Reported by: isis Owned by: isis
Priority: Medium Milestone:
Component: Obfuscation/BridgeDB Version:
Severity: Normal Keywords: bridgedb-https
Cc: Actual Points:
Parent ID: Points: .5
Reviewer: Sponsor: SponsorV

Description

Unhandled Error
Traceback (most recent call last):
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/protocols/basic.py", line 571, in dataReceived
    why = self.lineReceived(line)
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/web/http.py", line 1688, in lineReceived
    self.allContentReceived()
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/web/http.py", line 1767, in allContentReceived
    req.requestReceived(command, path, version)
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/web/http.py", line 768, in requestReceived
    self.process()
--- <exception caught here> ---
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/web/server.py", line 183, in process
    self.render(resrc)
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/web/server.py", line 234, in render
    body = resrc.render(self)
  File "/home/bridgedb/virtualenvs/bridgedb/lib/python2.7/site-packages/twisted/web/resource.py", line 250, in render
    return m(request)
  File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-packages/bridgedb-0.6.2+0.g6ace9a3.dirty-py2.7.egg/bridgedb/distributors/https/server.py", line 614, in render_POST
    return CaptchaProtectedResource.render_POST(self, request)
  File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-packages/bridgedb-0.6.2+0.g6ace9a3.dirty-py2.7.egg/bridgedb/distributors/https/server.py", line 480, in render_POST
    if self.checkSolution(request) is True:
  File "/home/bridgedb/virtualenvs/bridgedb/local/lib/python2.7/site-packages/bridgedb-0.6.2+0.g6ace9a3.dirty-py2.7.egg/bridgedb/distributors/https/server.py", line 540, in checkSolution
    challenge, solution = self.extractClientSolution(request)
exceptions.ValueError: too many values to unpack

Child Tickets

Change History (2)

comment:1 Changed 8 months ago by isis

Fixed in my fix/24701 branch, along with a "creative" punishment for the bots sending the malicious requests.

Last edited 8 months ago by isis (previous) (diff)

comment:2 Changed 8 months ago by isis

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.