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 "ValueError: unknown url type: 'csv'" (#9cfca98d) #920

Closed
commixreporter opened this issue May 21, 2024 · 2 comments
Assignees
Milestone

Comments

@commixreporter
Copy link

Commix version: 4.0-dev#52
Python version: 3.11.9
Operating system: posix
Command line: commix.py -u **************************************************** 
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 895, in <module>
    main(filename, url, http_request_method)
  File "main.py", line 551, in main
    controller.do_check(url, http_request_method, filename)
  File "controller.py", line 768, in do_check
    perform_checks(url, http_request_method, filename)
  File "controller.py", line 734, in perform_checks
    data_checks(url, http_request_method, filename, timesec)
  File "controller.py", line 658, in data_checks
    if get_request(url, http_request_method, filename, timesec) is None:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "controller.py", line 577, in get_request
    injection_proccess(url, check_parameter, http_request_method, filename, timesec)
  File "controller.py", line 367, in injection_proccess
    filebased_command_injection_technique(url, timesec, filename, http_request_method, url_time_response)
  File "controller.py", line 245, in filebased_command_injection_technique
    if fb_handler.exploitation(url, timesec, filename, http_request_method, url_time_response, injection_type, technique) != False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "fb_handler.py", line 622, in exploitation
    if fb_injection_handler(url, timesec, filename, http_request_method, url_time_response, injection_type, technique) == False:
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "fb_handler.py", line 289, in fb_injection_handler
    request = _urllib.request.Request(output)
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "request.py", line 322, in __init__
    self.full_url = url
    ^^^^^^^^^^^^^
  File "request.py", line 348, in full_url
    self._parse()
  File "request.py", line 377, in _parse
    raise ValueError("unknown url type: %r" % self.full_url)
ValueError: unknown url type: 'csv'
@stasinopoulos
Copy link
Member

This issue seems to be fixed in the code refactoring commit 21baf93.

Copy link

github-actions bot commented Sep 7, 2024

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

This action has been performed automatically by a bot.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants