-
Notifications
You must be signed in to change notification settings - Fork 137
Open
Labels
delayedThe issue will be fixed with a big update laterThe issue will be fixed with a big update laterenhancementNew feature or requestNew feature or request
Description
I will use PortSwigger's "Basic server-side template injection (code context)" task as an example but I have encountered same issue elsewhere.
Currently there is no way to specify a second order url however it's pretty simple to implement. I didn't add specific switch but in code I just had add two lines.
I used this command line:
./sstimap.py -u "https://0a70002e03773a3d81129428007b00eb.web-security-academy.net/my-account/change-blog-post-author-display" -d "blog-post-author-display=user.first_name&csrf=xGbHC88kaLt5KmNUTq7zw3wZ3fMDDAGx" --cookie 'session=Sk45UsfrkQRg3siVdnHxV8uBhDFG20gJ' -A -e Tornado
And changed those lines:
second_order_url="https://0a70002e03773a3d81129428007b00eb.web-security-academy.net/post?postId=6"
try:
result = requests.request(method=self.http_method, url=url_params, params=get_params, data=post_params,
headers=header_params, proxies=self.proxies, verify=self.args.get('verify_ssl'), allow_redirects=False).text
result = requests.get(second_order_url,cookies=cookies,proxies=self.proxies,verify=False).text
simple if that checks if second_order_url is in self.args should suffice IMHO.
Metadata
Metadata
Assignees
Labels
delayedThe issue will be fixed with a big update laterThe issue will be fixed with a big update laterenhancementNew feature or requestNew feature or request