'Parse the HTTP response for a vulnerability page such as
http://www.xssed.com/mirror/76754/ and create the vulnerability object
to the KB.'

def _parse_xssed_vuln_page(self, xss_report_response):

    body = xss_report_response.get_body()
    url_matches = self.XSSED_URL_RE.findall(body)
    for xss_url in url_matches:
        xss_url = xss_url.replace('<br>', '')
        xss_url = htmldecode(xss_url)
        xss_url = urllib2.unquote(xss_url)
        xss_url = URL(xss_url)
        if (self.UNFIXED in xss_report_response.get_body()):
            vuln_severity = severity.HIGH
            verb = 'contains'
        else:
            vuln_severity = severity.LOW
            verb = 'contained'
        desc_fmt = 'According    to    xssed.com    the    target    domain    %s    a    XSS    vulnerability,    see    %s    for    more    information'
        desc = (desc_fmt % (verb, xss_report_response.get_url()))
        v = Vuln('Potential    XSS    vulnerability', desc, vuln_severity, xss_report_response.id, self.get_name())
        v.set_url(xss_url)
        fr = FuzzableRequest(xss_url)
        self.output_queue.put(fr)
        self.kb_append(self, 'xss', v)
