Skip to content

Commit

Permalink
Minor improvement regarding successfully completing the scanning proc…
Browse files Browse the repository at this point in the history
…ess (i.e. in case that parameters with anti-CSRF tokens are omitted)
  • Loading branch information
stasinopoulos committed Dec 1, 2023
1 parent fb1c798 commit f14a1fa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Version 3.9 (TBA)
* Revised: Minor improvement regarding successfully completing the scanning process (i.e. in case that parameters with anti-CSRF tokens are omitted). (via @xerxoria)
* Revised: Minor improvement regarding Windows-based payloads for semiblind (i.e. "file-based") technique (i.e. command execution output).
* Revised: Minor improvement in semiblind (i.e. "file-based") technique, regarding defining the URL where the execution output of an injected payload is shown.
* Added: New switch `--ignore-proxy` to ignore the system default HTTP proxy.
Expand Down
3 changes: 2 additions & 1 deletion doc/THANKS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* Thanks [m3g9tr0n](https://twitter.com/m3g9tr0n) for a donation.

## List of individual contributors:
* Thanks [xerxoria](https://github.com/xerxoria) for reporting a bug and for suggesting a relevant fix.
* Thanks [Kazgangap](https://github.com/Kazgangap) for contributing a Turkish translation of README.md.
* Thanks [0xFred](https://github.com/0xFred) for contributing code.
* Thanks [verfosec](https://github.com/verfosec) for contributing a Farsi(Persian) translation of README.md.
Expand Down Expand Up @@ -81,7 +82,7 @@
* Thanks [Slavery](https://github.com/Slavery) for reporting a bug.
* Thanks [sno0ose](https://github.com/sno0ose) for reporting a bug.
* Thanks [somarrr](https://github.com/somarrr) for reporting a bug.
* Thanks [Suselz](https://github.com/Suselz) for reporting a few bugs and for suggesting suggesting enhancements.
* Thanks [Suselz](https://github.com/Suselz) for reporting a few bugs and for suggesting enhancements.
* Thanks [td4b](https://github.com/td4b) for contributing code.
* Thanks [techn0tr0ll](https://github.com/techn0tr0ll) for reporting a bug.
* Thanks [Tensha](https://github.com/Tensha) for reporting a bug.
Expand Down
3 changes: 3 additions & 0 deletions src/core/requests/parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def multi_params_get_value(parameter):
value = checks.value_boundaries(all_params[param], value, http_request_method)
# Ignoring the anti-CSRF parameter(s).
if checks.ignore_anticsrf_parameter(all_params[param]):
all_params[param - 1] = ''.join(all_params[param - 1]).replace(settings.INJECT_TAG, "")
continue
# Replace the value of parameter with INJECT_HERE tag
if len(value) == 0:
Expand Down Expand Up @@ -322,6 +323,7 @@ def multi_params_get_value(param, all_params):
value = checks.value_boundaries(all_params[param], value, http_request_method)
# Ignoring the anti-CSRF parameter(s).
if checks.ignore_anticsrf_parameter(all_params[param]):
all_params[param - 1] = ''.join(all_params[param - 1]).replace(settings.INJECT_TAG, "")
continue
# Replace the value of parameter with INJECT_HERE tag
if len(value) == 0:
Expand Down Expand Up @@ -523,6 +525,7 @@ def multi_params_get_value(parameter):
value = multi_params_get_value(all_params[param])
# Ignoring the anti-CSRF parameter(s).
if checks.ignore_anticsrf_parameter(all_params[param]):
all_params[param - 1] = ''.join(all_params[param - 1]).replace(settings.INJECT_TAG, "")
continue
# Ignoring the Google analytics cookie parameter.
if checks.ignore_google_analytics_cookie(all_params[param]):
Expand Down
2 changes: 1 addition & 1 deletion src/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def sys_argv_errors():
DESCRIPTION = "The command injection exploiter"
AUTHOR = "Anastasios Stasinopoulos"
VERSION_NUM = "3.9"
REVISION = "26"
REVISION = "27"
STABLE_RELEASE = False
VERSION = "v"
if STABLE_RELEASE:
Expand Down

0 comments on commit f14a1fa

Please sign in to comment.