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

Skip to content

Commit 2f4e34f

Browse files
committed
minor improvement for URI injections
1 parent d434047 commit 2f4e34f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/core/agent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ def payload(self, place=None, parameter=None, value=None, newValue=None, where=N
8080
if place == PLACE.URI:
8181
origValue = origValue.split(URI_INJECTION_MARK_CHAR)[0]
8282
origValue = origValue[origValue.rfind('/') + 1:]
83+
for char in ('?', '=', ':'):
84+
if char in origValue:
85+
origValue = origValue[origValue.rfind(char) + 1:]
8386

8487
if value is None:
8588
if where == PAYLOAD.WHERE.ORIGINAL:

0 commit comments

Comments
 (0)