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

PDF / HTML Button errors #117

Open
User14162 opened this issue Nov 15, 2024 · 8 comments
Open

PDF / HTML Button errors #117

User14162 opened this issue Nov 15, 2024 · 8 comments

Comments

@User14162
Copy link

1st Issure is, the CVSS diagram has the Impact arrow in the middle of the diagram, css problem i think
image

Second one is the problem, the PDF button doesnt work, it shows a different problem every time and i am having trouble trying to log it.

Nov 15 22:28:36 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:36 - DEBUG   - models.py:   54 - Report.get() called
Nov 15 22:28:36 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:36 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:37.896 WARN [SeleniumSpanExporter$1.lambda$export$3] - {"traceId": "550e2457bbc4ac887f46263757f42410","eventTime": 1731702517894210930,"eventName": "HTTP request execution complete","attributes": {"http.flavor": 1,"http.handler_class": "org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue","http.host": "chrome:4444","http.method": "POST","http.request_content_length": "310","http.scheme": "HTTP","http.status_code": 500,"http.target": "\u002fsession","http.user_agent": "selenium\u002f4.26.1 (python linux)"}}
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: chrome_1    |
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:37 - ERROR   - log.py:  224 - Internal Server Error: /engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generatePdf
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | Traceback (most recent call last):
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 47, in inner
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     response = get_response(request)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 181, in _get_response
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/utils/decorators.py", line 130, in _wrapped_view
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     response = view_func(request, *args, **kwargs)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/views/decorators/http.py", line 40, in inner
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     return func(request, *args, **kwargs)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/opt/writehat/./writehat/views.py", line 681, in reportGeneratePdf
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     browser = webdriver.Remote(command_executor="http://chrome:4444/wd/hub", options=ch)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 238, in __init__
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     self.start_session(capabilities)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 325, in start_session
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     response = self.execute(Command.NEW_SESSION, caps)["value"]
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 380, in execute
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     self.error_handler.check_response(response)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 229, in check_response
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     raise exception_class(message, screen, stacktrace)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | selenium.common.exceptions.SessionNotCreatedException: Message: Could not start a new session. New session request timed out
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | Host info: host: 'edf7b3210b58', ip: '172.21.0.5'
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | Build info: version: '4.26.0', revision: '69f9e5e'
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | System info: os.name: 'Linux', os.arch: 'amd64', os.version: '6.11.2-amd64', java.version: '17.0.12'
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | Driver info: driver.version: unknown
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | Stacktrace:
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.grid.sessionqueue.local.LocalNewSessionQueue.addToQueue (LocalNewSessionQueue.java:221)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.grid.sessionqueue.NewSessionQueue.lambda$new$0 (NewSessionQueue.java:68)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route$TemplatizedRoute.handle (Route.java:192)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route.execute (Route.java:69)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route$CombinedRoute.handle (Route.java:360)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route.execute (Route.java:69)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.grid.sessionqueue.NewSessionQueue.execute (NewSessionQueue.java:128)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.tracing.SpanWrappedHttpHandler.execute (SpanWrappedHttpHandler.java:87)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Filter$1.execute (Filter.java:63)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route$CombinedRoute.handle (Route.java:360)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route.execute (Route.java:69)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.grid.router.Router.execute (Router.java:87)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.grid.web.EnsureSpecCompliantResponseHeaders.lambda$apply$0 (EnsureSpecCompliantResponseHeaders.java:34)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Filter$1.execute (Filter.java:63)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route$CombinedRoute.handle (Route.java:360)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route.execute (Route.java:69)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route$NestedRoute.handle (Route.java:270)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route.execute (Route.java:69)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route$CombinedRoute.handle (Route.java:360)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Route.execute (Route.java:69)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.AddWebDriverSpecHeaders.lambda$apply$0 (AddWebDriverSpecHeaders.java:35)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0 (ErrorFilter.java:44)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Filter$1.execute (Filter.java:63)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.ErrorFilter.lambda$apply$0 (ErrorFilter.java:44)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.remote.http.Filter$1.execute (Filter.java:63)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at org.openqa.selenium.netty.server.SeleniumHandler.lambda$channelRead0$0 (SeleniumHandler.java:44)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:539)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at java.util.concurrent.FutureTask.run (FutureTask.java:264)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1136)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:635)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  |     at java.lang.Thread.run (Thread.java:840)
Nov 15 22:28:37 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 35|app: 0|req: 61/150] 172.21.0.1 () {56 vars in 1165 bytes} [Fri Nov 15 15:23:37 2024] GET /engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generatePdf => generated 145 bytes in 300037 msecs (HTTP/1.1 500) 6 headers in 184 bytes (1 switches on core 0)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:44.480 ERROR [ThrottlingLogger.doLog] - Failed to export spans. The request could not be executed. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    | java.net.ConnectException: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at io.opentelemetry.exporter.sender.okhttp.internal.RetryInterceptor.intercept(RetryInterceptor.java:91)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.lang.Thread.run(Thread.java:840)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         Suppressed: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4317
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 ... 21 more
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         Caused by: java.net.ConnectException: Connection refused
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.Net.pollConnect(Native Method)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/java.net.Socket.connect(Socket.java:633)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |                 ... 20 more
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    | Caused by: java.net.ConnectException: Connection refused
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.Net.pollConnect(Native Method)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.net.Socket.connect(Socket.java:633)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
Nov 15 22:28:44 HOSTNAME docker-compose[296257]: chrome_1    |         ... 20 more
Nov 15 22:28:48 HOSTNAME docker-compose[296257]: mongo_1     | {"t":{"$date":"2024-11-15T20:28:48.238+00:00"},"s":"I",  "c":"STORAGE",  "id":22430,   "ctx":"WTCheckpointThread","msg":"WiredTiger message","attr":{"message":"[1731702528:238259][1:0x7f0ed5200700], WT_SESSION.checkpoint: [WT_VERB_CHECKPOINT_PROGRESS] saving checkpoint snapshot min: 238, snapshot max: 238 snapshot count: 0, oldest timestamp: (0, 0) , meta checkpoint timestamp: (0, 0) base write gen: 71"}}
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.479 INFO [LocalNode.stopTimedOutSession] - Session id 7bd282e65f8d6b69f378d5532f319460 timed out, stopping...
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.588 INFO [LocalSessionMap.remove] - Deleted session from local Session Map, Id: 7bd282e65f8d6b69f378d5532f319460
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.589 INFO [GridModel.release] - Releasing slot for session id 7bd282e65f8d6b69f378d5532f319460
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.589 INFO [SessionSlot.stop] - Stopping session 7bd282e65f8d6b69f378d5532f319460
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.604 INFO [LocalDistributor.newSession] - Session request received by the Distributor:
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    |  [Capabilities {browserName: chrome, goog:chromeOptions: {args: [--disable-extensions, --headless, --no-sandbox, --disable-dev-shm-usage, --ignore-certificate-errors, --allow-running-insecure-co...], extensions: []}, pageLoadStrategy: normal}]
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.816 INFO [LocalNode.newSession] - Session created by the Node. Id: 3368f2cff9fb9af04794b794c4d05a90, Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 130.0.6723.91, chrome: {chromedriverVersion: 130.0.6723.91 (53ac07678369..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:43291}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.21.0.5:4444/sessio..., se:cdpVersion: 130.0.6723.91, se:containerName: , se:noVncPort: 7900, se:vnc: ws://172.21.0.5:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.21.0.5:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:50.819 INFO [LocalDistributor.newSession] - Session created by the Distributor. Id: 3368f2cff9fb9af04794b794c4d05a90
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: chrome_1    |  Caps: Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 130.0.6723.91, chrome: {chromedriverVersion: 130.0.6723.91 (53ac07678369..., userDataDir: /tmp/.org.chromium.Chromium...}, fedcm:accounts: true, goog:chromeOptions: {debuggerAddress: localhost:43291}, networkConnectionEnabled: false, pageLoadStrategy: normal, platformName: linux, proxy: Proxy(), se:bidiEnabled: false, se:cdp: ws://172.21.0.5:4444/sessio..., se:cdpVersion: 130.0.6723.91, se:containerName: , se:noVncPort: 7900, se:vnc: ws://172.21.0.5:4444/sessio..., se:vncEnabled: true, se:vncLocalAddress: ws://172.21.0.5:7900, setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:extension:minPinLength: true, webauthn:extension:prf: true, webauthn:virtualAuthenticators: true}
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - views.py:  687 - login_uri: https://nginx/login
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 34|app: 0|req: 37/151] 172.21.0.5 () {56 vars in 987 bytes} [Fri Nov 15 15:28:50 2024] GET /login => generated 7261 bytes in 5 msecs (HTTP/1.1 200) 9 headers in 461 bytes (1 switches on core 0)
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: nginx_1     | 172.21.0.5 - - [15/Nov/2024:20:28:50 +0000] "GET /login HTTP/1.1" 200 7261 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.0.0 Safari/537.36" "-"
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - WARNING - log.py:  224 - Forbidden (Permission denied): /validation/whitelists
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | Traceback (most recent call last):
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 47, in inner
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  |     response = get_response(request)
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/utils/deprecation.py", line 113, in __call__
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  |     response = self.process_request(request)
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  |   File "/opt/writehat/./writehat/lib/LoginRequiredMiddleware.py", line 34, in process_request
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  |     raise PermissionDenied()
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | django.core.exceptions.PermissionDenied
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 32|app: 0|req: 26/152] 172.21.0.5 () {60 vars in 1074 bytes} [Fri Nov 15 15:28:50 2024] GET /validation/whitelists => generated 135 bytes in 1 msecs (HTTP/1.1 403) 6 headers in 172 bytes (1 switches on core 0)
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: nginx_1     | 172.21.0.5 - - [15/Nov/2024:20:28:50 +0000] "GET /validation/whitelists HTTP/1.1" 403 135 "https://nginx/login" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.0.0 Safari/537.36" "-"
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - views.py:  692 - cookie_dict: {'name': 'sessionid', 'value': '3uup3eoicrlr1rp3olukagjiltu0plol'}
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - views.py:  696 - added clookie
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - views.py:  703 - Requesting uri: https://nginx//engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generate
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - models.py:   54 - Report.get() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: f7f28d2d-9b2e-40e5-86e9-36fee5a896ff
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: f7f28d2d-9b2e-40e5-86e9-36fee5a896ff
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  431 - Found component type: TitlePage
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.TitlePage.Component'>
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  243 - self._id: f7f28d2d-9b2e-40e5-86e9-36fee5a896ff
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: ee165cde-9a05-49ee-9cea-aa6df9a402ac
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: ee165cde-9a05-49ee-9cea-aa6df9a402ac
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  431 - Found component type: CustomerInfo
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.CustomerInfo.Component'>
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  243 - self._id: ee165cde-9a05-49ee-9cea-aa6df9a402ac
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: 0ab6d9ce-b1db-4058-ac40-c83a44f36a23
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: 0ab6d9ce-b1db-4058-ac40-c83a44f36a23
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  431 - Found component type: TableOfContents
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.TableOfContents.Component'>
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  243 - self._id: 0ab6d9ce-b1db-4058-ac40-c83a44f36a23
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: 7edb0639-51bd-443a-b3f7-ec38101ea1eb
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: 7edb0639-51bd-443a-b3f7-ec38101ea1eb
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  431 - Found component type: CVSSRiskDiagram
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.CVSSRiskDiagram.Component'>
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  243 - self._id: 7edb0639-51bd-443a-b3f7-ec38101ea1eb
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: bd582505-0d2c-483e-957a-8ce7aa70d148
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: bd582505-0d2c-483e-957a-8ce7aa70d148
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  431 - Found component type: FindingsTable
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.FindingsTable.Component'>
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:50 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:50 - DEBUG   - base.py:  243 - self._id: bd582505-0d2c-483e-957a-8ce7aa70d148
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: 7701fa07-5dec-46c2-b8be-fc015e5bd89f
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: 7701fa07-5dec-46c2-b8be-fc015e5bd89f
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  431 - Found component type: FindingsListShort
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.FindingsListShort.Component'>
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: 7701fa07-5dec-46c2-b8be-fc015e5bd89f
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  371 - Fetching component reportParent (uuid: 8b722f14-0922-4ccb-84d3-7b3a73cb3f47)
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Report.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: 08886716-4576-406f-9f70-632e850ef027
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: 08886716-4576-406f-9f70-632e850ef027
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  431 - Found component type: TableComponent
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.TableComponent.Component'>
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: 08886716-4576-406f-9f70-632e850ef027
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  123 - BaseComponent.get() called; ID: a6d5473b-c31b-451a-9d59-8050d387bfb9
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  416 - BaseComponent.getType() called; UUID: a6d5473b-c31b-451a-9d59-8050d387bfb9
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  431 - Found component type: FindingsList
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  130 - Instantiating object of type <class 'writehat.components.FindingsList.Component'>
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - db.py:  309 - db.update() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - db.py:  315 - Key "_id" is not valid for this model
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  156 - Initializing form class for Component
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: a6d5473b-c31b-451a-9d59-8050d387bfb9
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  371 - Fetching component reportParent (uuid: 8b722f14-0922-4ccb-84d3-7b3a73cb3f47)
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Report.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  655 - Removing page break from first component Title Page
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Engagement.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: f7f28d2d-9b2e-40e5-86e9-36fee5a896ff
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - PageTemplate.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - PageTemplate.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: ee165cde-9a05-49ee-9cea-aa6df9a402ac
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: 0ab6d9ce-b1db-4058-ac40-c83a44f36a23
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: 7edb0639-51bd-443a-b3f7-ec38101ea1eb
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: bd582505-0d2c-483e-957a-8ce7aa70d148
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  124 - ordered_fgroups: []
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: 7701fa07-5dec-46c2-b8be-fc015e5bd89f
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: 08886716-4576-406f-9f70-632e850ef027
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  556 - Called Report.findings()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - finding.py:  262 - CVSS score called with vector string: (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H/E:H/RL:O/RC:C/CR:H/IR:H/AR:H/MAV:N/MAC:X/MPR:X/MUI:X/MS:X/MC:X/MI:X/MA:X)
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  237 - Component.json() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - base.py:  243 - self._id: a6d5473b-c31b-451a-9d59-8050d387bfb9
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  556 - Called Report.findings()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  556 - Called Report.findings()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   54 - Customer.get() called
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - models.py:   55 -   args: ()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  556 - Called Report.findings()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - report.py:  556 - Called Report.findings()
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: nginx_1     | 172.21.0.5 - - [15/Nov/2024:20:28:51 +0000] "GET //engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generate HTTP/1.1" 200 11964 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.0.0 Safari/537.36" "-"
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 35|app: 0|req: 62/153] 172.21.0.5 () {58 vars in 1239 bytes} [Fri Nov 15 15:28:50 2024] GET //engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generate => generated 11964 bytes in 128 msecs (HTTP/1.1 200) 5 headers in 159 bytes (1 switches on core 0)
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - WARNING - log.py:  224 - Not Found: /favicon.ico
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: nginx_1     | 172.21.0.5 - - [15/Nov/2024:20:28:51 +0000] "GET /favicon.ico HTTP/1.1" 404 179 "https://nginx//engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generate" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.0.0 Safari/537.36" "-"
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 32|app: 0|req: 27/154] 172.21.0.5 () {56 vars in 1099 bytes} [Fri Nov 15 15:28:51 2024] GET /favicon.ico => generated 179 bytes in 8 msecs (HTTP/1.1 404) 6 headers in 172 bytes (1 switches on core 0)
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - DEBUG   - views.py:  708 - Waiting for request to finish
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:51 - WARNING - log.py:  224 - Not Found: /images/None
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: nginx_1     | 172.21.0.5 - - [15/Nov/2024:20:28:51 +0000] "GET /images/None HTTP/1.1" 404 179 "https://nginx//engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generate" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/130.0.0.0 Safari/537.36" "-"
Nov 15 22:28:51 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 32|app: 0|req: 28/155] 172.21.0.5 () {56 vars in 1099 bytes} [Fri Nov 15 15:28:51 2024] GET /images/None => generated 179 bytes in 5 msecs (HTTP/1.1 404) 6 headers in 172 bytes (1 switches on core 0)
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:52 - DEBUG   - views.py:  712 - Finished loading
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  | 2024-11-15 15:28:52 - ERROR   - log.py:  224 - Internal Server Error: /engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generatePdf
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  | Traceback (most recent call last):
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/exception.py", line 47, in inner
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |     response = get_response(request)
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/core/handlers/base.py", line 181, in _get_response
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/utils/decorators.py", line 130, in _wrapped_view
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |     response = view_func(request, *args, **kwargs)
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |   File "/usr/local/lib/python3.8/dist-packages/django/views/decorators/http.py", line 40, in inner
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |     return func(request, *args, **kwargs)
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |   File "/opt/writehat/./writehat/views.py", line 714, in reportGeneratePdf
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  |     url = f"{browser.command_executor._url}{resource}"
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  | AttributeError: 'ChromeRemoteConnection' object has no attribute '_url'
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: nginx_1     | 172.21.0.1 - - [15/Nov/2024:20:28:52 +0000] "GET /engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generatePdf HTTP/1.1" 500 145 "https://writehat.local/engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/edit" "Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0" "-"
Nov 15 22:28:52 HOSTNAME docker-compose[296257]: writehat_1  | [pid: 33|app: 0|req: 29/156] 172.21.0.1 () {56 vars in 1165 bytes} [Fri Nov 15 15:28:36 2024] GET /engagements/report/8b722f14-0922-4ccb-84d3-7b3a73cb3f47/generatePdf => generated 145 bytes in 15968 msecs (HTTP/1.1 500) 6 headers in 184 bytes (1 switches on core 0)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    | 20:28:59.481 ERROR [ThrottlingLogger.doLog] - Failed to export spans. The request could not be executed. Error message: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    | java.net.ConnectException: Failed to connect to localhost/[0:0:0:0:0:0:0:1]:4317
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at io.opentelemetry.exporter.sender.okhttp.internal.RetryInterceptor.intercept(RetryInterceptor.java:91)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.lang.Thread.run(Thread.java:840)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         Suppressed: java.net.ConnectException: Failed to connect to localhost/127.0.0.1:4317
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 ... 21 more
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         Caused by: java.net.ConnectException: Connection refused
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.Net.pollConnect(Native Method)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at java.base/java.net.Socket.connect(Socket.java:633)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |                 ... 20 more
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    | Caused by: java.net.ConnectException: Connection refused
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.Net.pollConnect(Native Method)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:547)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:602)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at java.base/java.net.Socket.connect(Socket.java:633)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
Nov 15 22:28:59 HOSTNAME docker-compose[296257]: chrome_1    |         ... 20 more

Please help, i would much appreciate using this project, it is by far the best out of all.

@User14162 User14162 changed the title 2 Issues PDF / HTML Button errors Nov 15, 2024
@User14162
Copy link
Author

and also, the HTML report, is always empty, the findings are never written, so I cant Ctrl + P and install as pdf

@TMDeal
Copy link
Collaborator

TMDeal commented Nov 18, 2024

have you tried using the dev branch? It is currently more up to date than master is and I believe solves these issues you are having. There are also plans to revamp this project in the coming months, so I would also keep that on your radar.

@User14162
Copy link
Author

is it called github-dev ?

@TMDeal
Copy link
Collaborator

TMDeal commented Nov 19, 2024

yes, that is the one

@Sigerbjorn
Copy link

Hi !

I'm also having this issue, despite trying the github-dev branch.
Any ideas or news about it ?

@User14162
Copy link
Author

Hi !

I'm also having this issue, despite trying the github-dev branch.

Any ideas or news about it ?

No, I tried everything, it does not work.

I have resorted to manually writing the report and findings.

@TMDeal
Copy link
Collaborator

TMDeal commented Dec 3, 2024

Hey, can you try following the steps outlined in #118 (comment)? I have had problems with the selenium server before and had made fixes for it by pinning the version for the selenium container image, if i remember correctly.

@TMDeal
Copy link
Collaborator

TMDeal commented Dec 18, 2024

just made an update to the github-dev branch in #119 to pin every dependency in requirements.txt to hopefully minimize these kinds of errors in the future. If you could update your local version of this branch and let me know if there are any other problems, please let me know.

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

3 participants