PacketFence - BTS - PacketFence | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0001718 | PacketFence | scanning | public | 2013-09-25 04:22 | 2013-09-25 08:30 |
Reporter | erSitzt | ||||
Assigned To | |||||
Priority | normal | Severity | major | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | OS | OS Version | |||
Product Version | 4.0.6-2 | ||||
Target Version | Fixed in Version | ||||
fixed in git revision | |||||
fixed in mtn revision | |||||
Summary | 0001718: OpenVAS XML-Respone can only be read if order and spaces are exactly as expectet by PacketFence | ||||
Description | The XML response returned by omp is parsed via regex like this one : /<get_reports_response\ status="([0-9]+)" [^\<]+[\<][^\>]+[\>] ([a-zA-Z0-9\=]+)/x In my case omp returns this XML <get_reports_response status_text="OK" status="200"><report id="15ce0c2d-bf8c-4972-a0f6-fe1e75bb298a" format_id="6c248850-1f62-11e1-b082-406186ea4fc5" extension="html" type="scan" content_type="text/html"> As you can see "status_text" and "status" are in a different order than pf expects them. I think the way the XML responses are evaluated is prone to errors and should be changed. Regex is not the way to go here. I have asked (in #openvas) if the order of elements is fixed in the xml and it is not... | ||||
Steps To Reproduce | |||||
Additional Information | Ubuntu 12.04 OpenVAS 5 ii libopenvas5 5.0.4-1 ii openvas-administrator 1.2.1-1ubuntu1~precise ii openvas-check-setup 2.2.0-0ubuntu1~precise ii openvas-cli 1.1.5-1ubuntu1~precise ii openvas-client 2.0.5-1ubuntu1 ii openvas-manager 3.0.6-0ubuntu1~precise ii openvas-scanner 3.3.1-1ubuntu1~precise | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | openvas.pm (11,603) 2013-09-25 05:22 https://www.packetfence.org/bugs/file_download.php?file_id=187&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-09-25 04:22 | erSitzt | New Issue | |||
2013-09-25 04:24 | erSitzt | Note Added: 0003454 | |||
2013-09-25 05:19 | erSitzt | Note Added: 0003455 | |||
2013-09-25 05:22 | erSitzt | File Added: openvas.pm | |||
2013-09-25 08:30 | erSitzt | Note Added: 0003456 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|