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(0 bytes read)" (#d3796db0) #887

Closed commixreporter closed 10 months ago

commixreporter commented 10 months ago
Commix version: 3.8-stable
Python version: 3.11.7
Operating system: posix
Command line: commix.py --wizard
Traceback (most recent call last):
  File "client.py", line 599, in _read_chunked
    value.append(self._safe_read(chunk_left))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "client.py", line 640, in _safe_read
    raise IncompleteRead(data, amt-len(data))
http.client.IncompleteRead: IncompleteRead(11953 bytes read, 78159 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 700, in perform_checks
    stored_http_header_injection(url, check_parameter, http_request_method, filename, timesec)
  File "controller.py", line 466, in stored_http_header_injection
    http_headers_injection(url, http_request_method, filename, timesec)
  File "controller.py", line 425, in http_headers_injection
    user_agent_injection(url, http_request_method, filename, timesec)
  File "controller.py", line 389, in user_agent_injection
    if not 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 179, in code_injections_heuristic_basic
    html_data = checks.page_encoding(response, action="decode")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "checks.py", line 446, in page_encoding
    page = response.read()
           ^^^^^^^^^^^^^^^
  File "client.py", line 467, in read
    return self._read_chunked(amt)
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "client.py", line 605, in _read_chunked
    raise IncompleteRead(b''.join(value)) from exc
http.client.IncompleteRead: IncompleteRead(0 bytes read)
stasinopoulos commented 10 months ago

Update to the latest (dev) version.

github-actions[bot] commented 7 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.