Skip to content

Commit 37771f0

Browse files
committed
Minor update
1 parent 2626e50 commit 37771f0

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from thirdparty import six
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.10.7.153"
23+
VERSION = "1.10.7.154"
2424
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2525
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2626
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/parse/html.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
from xml.sax.handler import ContentHandler
1111

12+
from lib.core.common import singleTimeWarnMessage
1213
from lib.core.common import urldecode
1314
from lib.core.common import parseXmlFile
1415
from lib.core.data import kb
@@ -86,7 +87,12 @@ def htmlParser(page):
8687
handler._markAsErrorPage()
8788
return retVal
8889

89-
parseXmlFile(xmlfile, handler)
90+
try:
91+
parseXmlFile(xmlfile, handler)
92+
except Exception:
93+
# DBMS fingerprinting from the error page is best-effort - a broken or third-party-patched
94+
# xml.sax (e.g. a modified stdlib on some distros) must not abort the whole scan (see #6086)
95+
singleTimeWarnMessage("unable to parse the response page for DBMS-specific error messages")
9096

9197
if handler.dbms and handler.dbms not in kb.htmlFp:
9298
kb.lastParserStatus = handler.dbms

0 commit comments

Comments
 (0)