From f0194a88140ec8055fe9dcaa1f68bc18be5610f9 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 11 Oct 2021 21:38:36 +0200 Subject: [PATCH] Fixing a special case (capitalized UNION response) --- lib/techniques/union/use.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/techniques/union/use.py b/lib/techniques/union/use.py index 19854167a..1832cd83d 100644 --- a/lib/techniques/union/use.py +++ b/lib/techniques/union/use.py @@ -95,6 +95,11 @@ def _oneShotUnionUse(expression, unpack=True, limited=False): # Perform the request page, headers, _ = Request.queryPage(payload, content=True, raise404=False) + if page and kb.chars.start.upper() in page and kb.chars.start not in page: + singleTimeWarnMessage("results seems to be upper-cased by force. sqlmap will automatically lower-case them") + + page = page.lower() + incrementCounter(PAYLOAD.TECHNIQUE.UNION) if kb.jsonAggMode: