Skip to content

Commit

Permalink
Version 1.1.3 (Bugfixes)
Browse files Browse the repository at this point in the history
Fixed bug with the new cookie processing
Fixed some code being unreachable
Moved new parameter to a different category

Just a minor bugfix update
  • Loading branch information
vladko312 authored May 26, 2023
1 parent f6a67c9 commit 84578dd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
9 changes: 7 additions & 2 deletions core/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ def _parse_cookies(self, cookies, all_injectable=False):
# the parsing code. Concatenate to avoid headers with
# the same key.
if cookies:
for cookie in cookies.split(';'):
splitted_cookies = []
for cookie in cookies:
for param_value in cookie.split(';'):
if '=' in param_value:
splitted_cookies.append(param_value)
for cookie in splitted_cookies:
param, value = cookie.split('=', 1)
param = param.strip()
value = value.strip()
Expand All @@ -85,7 +90,7 @@ def _parse_header(self, all_injectable=False):
param = param.strip()
value = value.strip()
if param.lower() == "cookie":
self._parse_cookies(value, all_injectable=all_injectable)
self._parse_cookies([value], all_injectable=all_injectable)
else:
self.header_params[param] = value
if self.tag in param:
Expand Down
6 changes: 3 additions & 3 deletions sstimap.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import traceback


version = '1.1.2'
version = '1.1.3'


def main():
Expand Down Expand Up @@ -64,8 +64,8 @@ def main():
checks.check_template_injection(channel)
if channel.data.get('engine'):
break # TODO: save vulnerabilities
if not forms:
log.log(25, f'No forms were detected to scan')
if not forms:
log.log(25, f'No forms were detected to scan')
else:
# predetermined mode
checks.check_template_injection(Channel(args))
Expand Down
4 changes: 2 additions & 2 deletions utils/cliparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def banner():
help="Depth to crawl (default/0: don't crawl)")
target.add_argument("-f", "--forms", action="store_true", dest="forms",
help="Scan page(s) for forms")
target.add_argument("--config", dest="config",
help="Use custom config file or directory")


request = parser.add_argument_group(title="request", description="These options can specify how to connect to the "
Expand Down Expand Up @@ -78,6 +76,8 @@ def banner():
detection.add_argument("--crawl-exclude", dest="crawl_exclude", help="Regex in URLs to not crawl")
detection.add_argument("--crawl-domains", dest="crawl_domains",
help="Crawl other domains: Y(es) / S(ubdomains) / N(o). Default: S")
detection.add_argument("--config", dest="config",
help="Use custom config file or directory")


payload = parser.add_argument_group(title="payload",
Expand Down

0 comments on commit 84578dd

Please sign in to comment.