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

Recent dependabot commits breaks the web UI for docker build #1271

Open
VinhPham2106 opened this issue May 8, 2024 · 0 comments
Open

Recent dependabot commits breaks the web UI for docker build #1271

VinhPham2106 opened this issue May 8, 2024 · 0 comments

Comments

@VinhPham2106
Copy link
Contributor

After some dependabot version bumps, the web UI is broken on docker build. The owtf and database containers can be built fine, but tornado is looking for the wrong template file

Expected Behavior

The UI should show the dashboard.
image

Current Behavior

Building OWTF docker using make compose will build the containers and return all the normal messages, but when accessing the web UI (most likely at localhost:8009), a message like this will pop up:

  File "/home/owtf/owtf-venv/lib/python3.9/site-packages/tornado/web.py", line 1590, in _execute
    result = method(*self.path_args, **self.path_kwargs)
  File "/home/owtf/owtf-venv/lib/python3.9/site-packages/owtf-2.6.0-py3.9.egg/owtf/api/handlers/index.py", line 35, in get
    self.render("index.html")
  File "/home/owtf/owtf-venv/lib/python3.9/site-packages/tornado/web.py", line 766, in render
    html = self.render_string(template_name, **kwargs)
  File "/home/owtf/owtf-venv/lib/python3.9/site-packages/tornado/web.py", line 904, in render_string
    t = loader.load(template_name)
  File "/home/owtf/owtf-venv/lib/python3.9/site-packages/tornado/template.py", line 425, in load
    self.templates[name] = self._create_template(name)
  File "/home/owtf/owtf-venv/lib/python3.9/site-packages/tornado/template.py", line 452, in _create_template
    with open(path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: '/home/owtf/.owtf/build/index.html'

Possible Solution

Most appropriate solution is to investigate into the new tornado/UI behavior
A quick workaround is to hard reset to this commit will bring back the functional UI. Optionally, apply this newest commit to ensure GCP bucket enumeration works.

Steps to Reproduce (for bugs)

  1. Clone OWTF on newest develop release
  2. make compose
  3. Wait for containers to be built
  4. Navigate to localhost:8009 or wherever container port 8009 is forwarded to.

Logs

Context

Your Environment

  • Installation method used: Docker
  • Version/branch used: newest commit, develop
  • Operating System and version (like Kali, Debian, ArchLinux, etc): Windows Host, Docker Desktop
  • pip/setuptools version:
  • sudo access:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant