[Secure-testing-commits] r22511 - bin lib/python

Paul Wise pabs at alioth.debian.org
Thu Jun 6 03:47:22 UTC 2013


Author: pabs
Date: 2013-06-06 03:47:22 +0000 (Thu, 06 Jun 2013)
New Revision: 22511

Modified:
   bin/tracker_service.py
   lib/python/web_support.py
Log:
Link to OSVDB and EDB search pages for the CVE

Modified: bin/tracker_service.py
===================================================================
--- bin/tracker_service.py	2013-06-06 02:14:45 UTC (rev 22510)
+++ bin/tracker_service.py	2013-06-06 03:47:22 UTC (rev 22511)
@@ -320,6 +320,10 @@
                                       "; ",
                                       self.make_osssec_bug_ref(url, bug.name, 'oss-sec'),
                                       ", ",
+                                      self.make_osvdb_bug_ref(url, bug.name, 'OSVDB'),
+                                      ", ",
+                                      self.make_edb_bug_ref(url, bug.name, 'EDB'),
+                                      ", ",
                                       self.make_rhbug_ref(url, bug.name,
                                                         'Red Hat'),
                                       ", ",
@@ -1202,6 +1206,10 @@
                             vulnId=name)
     def url_osssec_bug(self, url, name):
         return url.absolute("http://marc.info/", l="oss-security", s=name)
+    def url_osvdb_bug(self, url, name):
+        return url.absoluteDict("http://osvdb.org/search/search", {"search[refid]": name})
+    def url_edb_bug(self, url, name):
+        return url.absolute("http://www.exploit-db.com/search/", action="search", filter_cve=name)
     def url_rhbug(self, url, name):
         return url.absolute("https://bugzilla.redhat.com/show_bug.cgi",
                             id=name)
@@ -1266,6 +1274,16 @@
             name = cve
         return A(self.url_osssec_bug(url, cve), name)
 
+    def make_osvdb_bug_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_osvdb_bug(url, cve), name)
+
+    def make_edb_bug_ref(self, url, cve, name=None):
+        if name is None:
+            name = cve
+        return A(self.url_edb_bug(url, cve), name)
+
     def make_rhbug_ref(self, url, cve, name=None):
         if name is None:
             name = cve

Modified: lib/python/web_support.py
===================================================================
--- lib/python/web_support.py	2013-06-06 02:14:45 UTC (rev 22510)
+++ lib/python/web_support.py	2013-06-06 03:47:22 UTC (rev 22511)
@@ -182,6 +182,11 @@
         
         return URL(url + self._convertArgs(args))
 
+    def absoluteDict(self, url, args):
+        """Creates an absolute URL, with arguments to pass."""
+        
+        return URL(url + self._convertArgs(args))
+
     def scriptRelative(self, path, **args):
         """Returns a URL which references to the path relative to the
         current script.  Optionally, arguments to pass can be included."""




More information about the Secure-testing-commits mailing list