commixproject / commix

Automated All-in-One OS Command Injection Exploitation Tool.
https://commixproject.com
Other
4.62k stars 818 forks source link

Bug Report: Unhandled exception "http.client.IncompleteRead: IncompleteRead(50818 bytes read)" (#8f4673b1) #895

Closed commixreporter closed 8 months ago

commixreporter commented 8 months ago
Commix version: 3.8-stable
Python version: 3.11.6
Operating system: posix
Command line: commix.py --wizard
Traceback (most recent call last):
  File "client.py", line 592, in _read_chunked
    value.append(self._safe_read(chunk_left))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "client.py", line 633, in _safe_read
    raise IncompleteRead(data, amt-len(data))
http.client.IncompleteRead: IncompleteRead(4194 bytes read, 606 more expected)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "commix.py", line 35, in <module>
    main()
  File "commix.py", line 30, in main
    import src.core.main
  File "main.py", line 819, in <module>
    main(filename, url)
  File "main.py", line 533, in main
    controller.do_check(url, http_request_method, filename)
  File "controller.py", line 732, in do_check
    if perform_checks(url, http_request_method, filename) == False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "controller.py", line 690, in perform_checks
    cookie_injection(url, http_request_method, filename, timesec)
  File "controller.py", line 521, in cookie_injection
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File "controller.py", line 329, 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 176, in code_injections_heuristic_basic
    response = requests.get_request_response(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "requests.py", line 388, in get_request_response
    headers.check_http_traffic(request)
  File "headers.py", line 207, in check_http_traffic
    page = checks.page_encoding(response, action="encode")
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "checks.py", line 446, in page_encoding
    page = response.read()
           ^^^^^^^^^^^^^^^
  File "client.py", line 460, in read
    return self._read_chunked(amt)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "client.py", line 598, in _read_chunked
    raise IncompleteRead(b''.join(value)) from exc
http.client.IncompleteRead: IncompleteRead(50818 bytes read)
stasinopoulos commented 8 months ago

Similar with https://github.com/commixproject/commix/issues/859

github-actions[bot] commented 4 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related issues.