Closed alex4561 closed 2 years ago
@alex4561 Facing the same issue. Have you got this fixed.? Please share the update. It would be really helpful.
I am also getting the below error.
ERROR [Errno 13] Permission denied: '/zap/wrk/testreport.html'
@alex4561 I think this is only some spam not actual errors for ZAP: https://github.com/mozilla/geckodriver/issues/1898
Or is the report not generated in the end?
@snehadominic You can that error because the ZAP container cannot write the report. Try -u root in the docker run command.
@dicksnel Thanks for quick help! -u root fixed the report issue.
As a question, what does below logs mean? I am seeing it even when I tried running scan against the demo URL in command example.
2021-07-01T15:17:07.0687391Z WARNING: An illegal reflective access operation has occurred
2021-07-01T15:17:07.0688810Z WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$2 (file:/zap/./plugin/spiderAjax-release-23.4.0.zap) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
2021-07-01T15:17:07.0689453Z WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$2
2021-07-01T15:17:07.0690038Z WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
2021-07-01T15:17:07.0690412Z WARNING: All illegal access operations will be denied in a future release
@dicksnel A quick update, using '-u root' didn't fix the issue completely. After using '-u root' in the docker run command, login is failing. Scan is happening without authentication. Once I remove '-u root', I could see that login is successful, but then permission to write report is not present. Please help.
Adding authentication error below:
2021-07-01T15:21:21.3833009Z 2021-07-01 15:21:21,382 Start display
2021-07-01T15:21:21.4428672Z 2021-07-01 15:21:21,441 Start webdriver
2021-07-01T15:21:21.5567103Z Traceback (most recent call last):
2021-07-01T15:21:21.5567648Z File "/zap/zap_auth.py", line 75, in login
2021-07-01T15:21:21.5568041Z self.setup_webdriver(config)
2021-07-01T15:21:21.5568463Z File "/zap/zap_auth.py", line 63, in setup_webdriver
2021-07-01T15:21:21.5568913Z self.driver = webdriver.Firefox(profile)
2021-07-01T15:21:21.5570166Z File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/firefox/webdriver.py", line 170, in __init__
2021-07-01T15:21:21.5570704Z RemoteWebDriver.__init__(
2021-07-01T15:21:21.5571505Z File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
2021-07-01T15:21:21.5572082Z self.start_session(capabilities, browser_profile)
2021-07-01T15:21:21.5572918Z File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
2021-07-01T15:21:21.5573506Z response = self.execute(Command.NEW_SESSION, parameters)
2021-07-01T15:21:21.5574332Z File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
2021-07-01T15:21:21.5574885Z self.error_handler.check_response(response)
2021-07-01T15:21:21.5575719Z File "/usr/local/lib/python3.8/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
2021-07-01T15:21:21.5576295Z raise exception_class(message, screen, stacktrace)
2021-07-01T15:21:21.5576867Z selenium.common.exceptions.WebDriverException: Message: Process unexpectedly closed with status 1
2021-07-01T15:21:21.5577212Z
2021-07-01T15:21:21.5577842Z 2021-07-01 15:21:21,555 error in login: None
Are you sure the Docker container can reach the host you are scanning? Can you paste your full command?
hi all I have run the ZAP with the help of docker and I get this error (find the screen) What solutions you can offer . I have tried to scan the login pages
Hello! Can you help me please. I make scan.sh file with:
Then start it. Log:
It looks like everything is ok, but:
And the whole log is filled
[GFX1-]: RenderCompositorSWGL failed mapping default framebuffer, no dt
What I do wrong?=)
I have tried running it on Mac and Ubuntu Server without GUI.
Thank you!