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 "UnboundLocalError: local variable 'vuln_parameter' referenced before assignment" (#fe86f048) #974

Closed commixreporter closed 3 weeks ago

commixreporter commented 3 weeks ago
Commix version: 4.0-dev#107
Python version: 3.10.12
Operating system: posix
Command line: commix.py -r ************** 
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 743, in do_check
    perform_checks(url, http_request_method, filename)
  File \"controller.py", line 693, in perform_checks
    cookies_checks(url, http_request_method, filename, timesec)
  File \"controller.py", line 640, in cookies_checks
    cookie_injection(url, http_request_method, filename, timesec)
  File \"controller.py", line 516, in cookie_injection
    do_injection(cookie_parameters, settings.COOKIE, header_name, url, http_request_method, filename, timesec)
  File \"controller.py", line 545, in do_injection
    url, check_parameter = define_check_parameter(found, i, url)
  File \"controller.py", line 539, in define_check_parameter
    check_parameter = parameters.specify_cookie_parameter(found[i])
  File \"parameters.py", line 728, in specify_cookie_parameter
    return vuln_parameter
UnboundLocalError: local variable 'vuln_parameter' referenced before assignment