'Verify if the file was uploaded.
:param domain_path: http://localhost/f00/
:param rand_file: The filename that was (potentially) uploaded
:param upload_id: The id of the POST request to author.dll'

def _verify_upload(self, domain_path, rand_file, upload_id):

    target_url = domain_path.url_join(rand_file)
    try:
        res = self._uri_opener.GET(target_url)
    except BaseFrameworkException as e:
        msg = ('Exception    while    verifying    if    the    file    that    was    uploadedusing    author.dll    was    there:    %s' % e)
        om.out.debug(msg)
    else:
        if ((res.get_body() == rand_file[::(-1)]) and (not is_404(res))):
            desc = 'An    insecure    configuration    in    the    frontpage    extensions    allows    unauthenticated    users    to    upload    files    to    the    remote    web    server.'
            v = Vuln('Insecure    Frontpage    extensions    configuration', desc, severity.HIGH, [upload_id, res.id], self.get_name())
            v.set_url(target_url)
            v.set_method('POST')
            om.out.vulnerability(v.get_desc(), severity=v.get_severity())
            self.kb_append(self, 'frontpage', v)
        else:
            msg = 'The    file    that    was    uploaded    using    the    POST    method    is    not    present    on    the    remote    web    server    at    "%s".'
            om.out.debug((msg % target_url))
