Skip to content

Commit

Permalink
Modify description of Acunetix webvulns to force uniqueness.
Browse files Browse the repository at this point in the history
Add path and parameter fields if they exist, so webvulns with the same
original description and name, but different path and/or parameter will
have a different id (expected behavior)

QA #4191
  • Loading branch information
cript0nauta committed Jul 24, 2017
1 parent 9bccf7e commit b154c8e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ Make sure you run ```./faraday.py --update``` the first time after an update!
New features in the latest update
=====================================

TBA
---
* Improved Acunetix plugin to avoid conflicts and missing imported data

July 19, 2017:
---
* Added the ability to select more than one target when creating a vuln in the Web UI
Expand Down
7 changes: 7 additions & 0 deletions plugins/repo/acunetix/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,13 @@ def __init__(self, item_node):
else:
self.desc += ""

# Add path and params to the description to create different IDs if at
# least one of this fields is different
if self.uri:
self.desc += '\nPath: ' + self.uri
if self.parameter:
self.desc += '\nParameter: ' + self.parameter

self.ref = []
for n in item_node.findall('References/Reference'):
n2 = n.find('URL')
Expand Down

0 comments on commit b154c8e

Please sign in to comment.