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 "AttributeError: 'NoneType' object has no attribute 'group'" (#a7f9a2c7) #914

Closed
commixreporter opened this issue May 6, 2024 · 0 comments

Comments

@commixreporter
Copy link

Commix version: 4.0-dev#41
Python version: 3.11.8
Operating system: posix
Command line: commix.py --wizard

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 897, in <module>
    main(filename, url, http_request_method)
  File "main.py", line 553, in main
    controller.do_check(url, http_request_method, filename)
  File "controller.py", line 783, in do_check
    if perform_checks(url, http_request_method, filename) == False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "controller.py", line 747, in perform_checks
    data_checks(url, http_request_method, filename, timesec)
  File "controller.py", line 671, in data_checks
    if get_request(url, http_request_method, filename, timesec) is None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "controller.py", line 591, in get_request
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File "controller.py", line 341, in injection_proccess
    url = command_injection_heuristic_basic(url, http_request_method, check_parameter, the_type, header_name, inject_http_headers)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "controller.py", line 122, in command_injection_heuristic_basic
    response = requests.get_request_response(request)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "requests.py", line 408, in get_request_response
    headers.check_http_traffic(request)
  File "headers.py", line 218, in check_http_traffic
    checks.not_declared_cookies(response)
  File "checks.py", line 326, in not_declared_cookies
    set_cookie_headers.append(re.search(r'([^;]+);?', set_cookie_header[1]).group(1))
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
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