Skip to content

Commit 90cbaa1

Browse files
committed
Fixes #5539
1 parent 1740f63 commit 90cbaa1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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.six import unichr as _unichr
2121

2222
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
23-
VERSION = "1.7.10.0"
23+
VERSION = "1.7.10.1"
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/request/connect.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class WebSocketException(Exception):
122122
from lib.core.settings import RANDOM_INTEGER_MARKER
123123
from lib.core.settings import RANDOM_STRING_MARKER
124124
from lib.core.settings import REPLACEMENT_MARKER
125+
from lib.core.settings import SAFE_HEX_MARKER
125126
from lib.core.settings import TEXT_CONTENT_TYPE_REGEX
126127
from lib.core.settings import UNENCODED_ORIGINAL_VALUE
127128
from lib.core.settings import UNICODE_ENCODING
@@ -1069,7 +1070,9 @@ def queryPage(value=None, place=None, content=False, getRatioValue=False, silent
10691070
if kb.postHint in (POST_HINT.SOAP, POST_HINT.XML):
10701071
# payloads in SOAP/XML should have chars > and < replaced
10711072
# with their HTML encoded counterparts
1073+
payload = payload.replace("&#", SAFE_HEX_MARKER)
10721074
payload = payload.replace('&', "&amp;").replace('>', "&gt;").replace('<', "&lt;").replace('"', "&quot;").replace("'", "&apos;") # Reference: https://stackoverflow.com/a/1091953
1075+
payload = payload.replace(SAFE_HEX_MARKER, "&#")
10731076
elif kb.postHint == POST_HINT.JSON:
10741077
payload = escapeJsonValue(payload)
10751078
elif kb.postHint == POST_HINT.JSON_LIKE:

0 commit comments

Comments
 (0)