Donate Share

PowerFuzzer

Tracker: Patches

5 [PATCH] Properly report 500 errors during attack injection - ID: 2090278
Last Update: Comment added ( lukemacken )

In the attackInjection_POST method, when the statement 'u =
urllib2.urlopen(req)' triggers a 500 error, and HTTPError exception is
thrown. This then leaves the 'u' variable unset, and causes issues later
on. Attached is a patch to resolve this issue.

Traceback (most recent call last):
File "/usr/lib64/python2.5/threading.py", line 460, in __bootstrap
self.run()
File "powerfuzzer/powerfuzzer.py", line 174, in run
self.attack()
File "powerfuzzer/powerfuzzer.py", line 258, in attack
self.attackPOST(form)
File "powerfuzzer/powerfuzzer.py", line 374, in attackPOST
if self.doInjection==1: self.attackInjection_POST(form)
File "powerfuzzer/powerfuzzer.py", line 920, in attackInjection_POST
if u.code==500:
UnboundLocalError: local variable 'u' referenced before assignment


Luke Macken ( lukemacken ) - 2008-09-03 03:28

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-09-03 03:54
Sender: lukemacken


File Added: powerfuzzer-HTTPError-500-take2.patch


Log in to comment.

Attached File ( 1 )

Filename Description Download
powerfuzzer-HTTPError-500-take2.patch A cleaner patch that fixes this issue everywhere. Download

Changes ( 4 )

Field Old Value Date By
File Added 291854: powerfuzzer-HTTPError-500-take2.patch 2008-09-03 03:54 lukemacken
File Deleted 291849: 2008-09-03 03:54 lukemacken
summary [PATCH] Fix traceback 2008-09-03 03:30 lukemacken
File Added 291849: powerfuzzer-HTTPError-500.patch 2008-09-03 03:28 lukemacken