yogeshojha / rengine

reNgine is an automated reconnaissance framework for web applications with a focus on highly configurable streamlined recon process via Engines, recon data correlation and organization, continuous monitoring, backed by a database, and simple yet intuitive User Interface. reNgine makes it easy for penetration testers to gather reconnaissance with minimal configuration and with the help of reNgine's correlation, it just makes recon effortless.
https://yogeshojha.github.io/rengine/
GNU General Public License v3.0
7.53k stars 1.14k forks source link

bug: Web error when H1 API key is missing #1426

Closed ba0f3 closed 2 months ago

ba0f3 commented 2 months ago

Is there an existing issue for this?

Current Behavior

Server error 500 after login to dashboard after update to version 2.2.0

web_1          | django.request | Internal Server Error: /
web_1          | Traceback (most recent call last):
web_1          |   File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/exception.py", line 47, in inner
web_1          |     response = get_response(request)
web_1          |   File "/usr/local/lib/python3.10/dist-packages/django/core/handlers/base.py", line 181, in _get_response
web_1          |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
web_1          |   File "/usr/src/app/dashboard/views.py", line 420, in onboarding
web_1          |     context['hackerone_key'] = HackerOneAPIKey.objects.first().key # <===
web_1          | AttributeError: 'NoneType' object has no attribute 'key'

Expected Behavior

It should redirect to dashboard

Steps To Reproduce

Environment

- reNgine: 2.2.0
- OS: Linux
- Python: 
- Docker Engine: 
- Docker Compose: 
- Browser:

Anything else?

No response

github-actions[bot] commented 2 months ago

Hey @ba0f3! πŸ‘‹ Thanks for flagging this bug! πŸ›πŸ”

You're our superhero bug hunter! πŸ¦Έβ€β™‚οΈπŸ¦Έβ€β™€οΈ Before we suit up to squash this bug, could you please:

πŸ“š Double-check our documentation: https://rengine.wiki πŸ•΅οΈ Make sure it's not a known issue πŸ“ Provide all the juicy details about this sneaky bug

Once again - thanks for your vigilance! πŸ› οΈπŸš€

ipsecc commented 2 months ago

same as me

yogeshojha commented 2 months ago

Hi @ba0f3 @ipsecc such a silly mistake ;p

I have fixed this now, please pull the latest branch.

Thank you!