Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report: Unhandled exception "IndexError: list index out of range" (#3e88db5a) #994

Open
commixreporter opened this issue Jan 9, 2025 · 1 comment

Comments

@commixreporter
Copy link

Commix version: 4.0-stable
Python version: 3.12.8
Operating system: posix
Command line: commix.py -r ************* --random-agent --tamper=space2ifs,base64encode -v1

Traceback (most recent call last):
  File \"commix.py", line 36, in <module>
    main()
  File \"commix.py", line 31, in main
    import src.core.main
  File \"main.py", line 902, in <module>
    main(filename, url, http_request_method)
  File \"main.py", line 560, in main
    controller.do_check(url, http_request_method, filename)
  File \"controller.py", line 744, in do_check
    perform_checks(url, http_request_method, filename)
  File \"controller.py", line 707, in perform_checks
    data_checks(url, http_request_method, filename, timesec)
  File \"controller.py", line 628, in data_checks
    if get_request(url, http_request_method, filename, timesec) is None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"controller.py", line 591, in get_request
    do_injection(found_url, settings.HTTPMETHOD.GET, header_name, url, http_request_method, filename, timesec)
  File \"controller.py", line 577, in do_injection
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File \"controller.py", line 368, in injection_proccess
    url = code_injections_heuristic_basic(url, http_request_method, check_parameter, the_type, header_name, inject_http_headers)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"controller.py", line 186, in code_injections_heuristic_basic
    response, url = heuristic_request(url, http_request_method, check_parameter, payload, whitespace)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"controller.py", line 86, in heuristic_request
    payload = checks.perform_payload_modification(payload)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File \"checks.py", line 1838, in perform_payload_modification
    settings.RAW_PAYLOAD = payload.replace(settings.WHITESPACES[0], settings.SINGLE_WHITESPACE)
                                           ~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
@stasinopoulos
Copy link
Member

Not able to reproduce using the provided flags:
Screenshot 2025-01-10 at 15 01 05

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants