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.48k stars 1.13k forks source link

bug: MaxRetryError for checkip.amazonaws.com #1413

Closed null-ref-0000 closed 1 month ago

null-ref-0000 commented 2 months ago

Is there an existing issue for this?

Current Behavior

Homepage does not load

Expected Behavior

Homepage should load without error

Steps To Reproduce

Unclear steps at this time how to reproduce, but I believe it occurs when the homepage is loaded to often.

Environment

- reNgine: 2.1.3
- OS: Debian 12
- Python: 3.11
- Docker Engine: 26.1.2, build 211e74b
- Docker Compose: v2.5.0
- Browser: Chrome

Anything else?

externalIp = requests.get('https://checkip.amazonaws.com').text.strip() web-1 | urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPSConnection object at 0x7f3992fee290>, 'Connection to checkip.amazonaws.com timed out. (connect timeout=None)') web-1 | urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='checkip.amazonaws.com', port=443): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f3992fee290>, 'Connection to checkip.amazonaws.com timed out. (connect timeout=None)'))

github-actions[bot] commented 2 months ago

Hey @null-ref-0000! πŸ‘‹ 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! πŸ› οΈπŸš€

null-ref-0000 commented 2 months ago

I believe this can be resolved by caching the footer.html. Perhaps should be cache ttl should be one hour?

https://docs.djangoproject.com/en/5.1/topics/cache/#template-fragment-caching

yogeshojha commented 2 months ago

Hi @null-ref-0000 I have removed this ip check in reNgine 2.2.0. I don't see any benefit of having an IP check or even showing external IP on page, so I had removed. Once 2.2.0 is released I will close this