diff --git a/lib/core/agent.py b/lib/core/agent.py index 78d81c6e0..20253e124 100644 --- a/lib/core/agent.py +++ b/lib/core/agent.py @@ -28,6 +28,7 @@ from lib.core.data import queries from lib.core.dicts import DUMP_DATA_PREPROCESS from lib.core.dicts import FROM_DUMMY_TABLE from lib.core.enums import DBMS +from lib.core.enums import HTTP_HEADER from lib.core.enums import PAYLOAD from lib.core.enums import PLACE from lib.core.enums import POST_HINT @@ -114,6 +115,11 @@ class Agent(object): match = re.search(r"([^;]+)=(?P[^;]+);?\Z", origValue) if match: origValue = match.group("value") + elif ',' in paramString: + header = paramString.split(',')[0] + + if header.upper() == HTTP_HEADER.AUTHORIZATION.upper(): + origValue = origValue.split(' ')[-1] if conf.prefix: value = origValue