justmorpheus / burp-automation

Performing automated scan using Burp Suite Pro & Vmware Burp Rest API
GNU General Public License v3.0
47 stars 13 forks source link

AttributeError: 'NoneType' object has no attribute 'partition' #3

Closed h888t closed 3 months ago

h888t commented 3 years ago

When parsing results to construct the CSV, for issues that don't have a issueBackground key - the script crashes.

Looks like checking is needed to determine that the key exists before parsing (if anyone else comes across this issue)

h888t commented 3 years ago

Fuzzing
==============================================================================
Burp Automation test: :: Burp Automation Via Burp Rest API            .
The scan started with the message "Status: Headless Burp API Running"

...
The Scope included with status "200"

..
Scope Validation completed with the message "Scope URL https://demo.testfire.net/ is True"

..
The Burp spider started with the message "200"

Burp Automation test: :: Burp Automation Via Burp Rest API            ...
The active scan has been added "200"

...
Current Scan Status: "Scan is running for too long, downloading the report"

.
You can now relax for approximately 3 minutes

Burp Automation test: :: Burp Automation Via Burp Rest API            | FAIL |
AttributeError: 'NoneType' object has no attribute 'partition'
------------------------------------------------------------------------------
Fuzzing                                                               | FAIL |
1 test, 0 passed, 1 failed
==============================================================================```