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

Skip to content

Commit dd2ddec

Browse files
committed
Minor fix (better extraction of original value in case of replacement and custom POST injection mark)
1 parent 59d667d commit dd2ddec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/core/agent.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
101101
elif kb.postHint == POST_HINT.JSON:
102102
origValue = extractRegexResult(r"(?s)\"\s*:\s*(?P<result>\d+\Z)", origValue) or extractRegexResult(r'(?s)(?P<result>[^"]+\Z)', origValue)
103103
else:
104-
origValue = extractRegexResult(r"(?s)(?P<result>[^\s<>{}();'\"]+\Z)", origValue) or ""
104+
_ = extractRegexResult(r"(?s)(?P<result>[^\s<>{}();'\"]+\Z)", origValue) or ""
105+
origValue = _.split('=', 1)[1] if '=' in _ else ""
105106
elif place == PLACE.CUSTOM_HEADER:
106107
paramString = origValue
107108
origValue = origValue.split(CUSTOM_INJECTION_MARK_CHAR)[0]

0 commit comments

Comments
 (0)