Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 91348b2

Browse files
committed
Patch for #3519
1 parent 663c15a commit 91348b2

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

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

lib/core/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ def process(match, repl):
393393
raise SqlmapGenericException(errMsg)
394394

395395
if conf.csrfToken:
396-
if not any(re.search(conf.csrfToken, ' '.join(_), re.I) for _ in (conf.paramDict.get(PLACE.GET, {}), conf.paramDict.get(PLACE.POST, {}))) and not re.search(r"\b%s\b" % re.escape(conf.csrfToken), conf.data or "") and conf.csrfToken not in set(_[0].lower() for _ in conf.httpHeaders) and conf.csrfToken not in conf.paramDict.get(PLACE.COOKIE, {}):
396+
if not any(re.search(conf.csrfToken, ' '.join(_), re.I) for _ in (conf.paramDict.get(PLACE.GET, {}), conf.paramDict.get(PLACE.POST, {}))) and not re.search(r"\b%s\b" % conf.csrfToken, conf.data or "") and conf.csrfToken not in set(_[0].lower() for _ in conf.httpHeaders) and conf.csrfToken not in conf.paramDict.get(PLACE.COOKIE, {}):
397397
errMsg = "anti-CSRF token parameter '%s' not " % conf.csrfToken._original
398398
errMsg += "found in provided GET, POST, Cookie or header values"
399399
raise SqlmapGenericException(errMsg)

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ d5ef43fe3cdd6c2602d7db45651f9ceb lib/core/readlineng.py
5050
7d8a22c582ad201f65b73225e4456170 lib/core/replication.py
5151
3179d34f371e0295dd4604568fb30bcd lib/core/revision.py
5252
d6269c55789f78cf707e09a0f5b45443 lib/core/session.py
53-
d4e63b95ac045f4adce348b6b30fb780 lib/core/settings.py
53+
10052581ade5d3c9d98d735eff8fb9b7 lib/core/settings.py
5454
4483b4a5b601d8f1c4281071dff21ecc lib/core/shell.py
5555
10fd19b0716ed261e6d04f311f6f527c lib/core/subprocessng.py
56-
43772ea73e9e3d446f782af591cb4eda lib/core/target.py
56+
0a5b0a97a36c19022665f66858fd7450 lib/core/target.py
5757
7857b24b7865ccb4a05283faa596974d lib/core/testing.py
5858
5c369aefa7c5af85dee9212acdf94bbc lib/core/threads.py
5959
2c263c8610667fdc593c50a35ab20f57 lib/core/unescaper.py

0 commit comments

Comments
 (0)