firefox not work for ajax spider

641 views
Skip to first unread message

simone zambonardi

unread,
Aug 13, 2022, 1:53:42 PM8/13/22
to OWASP ZAP User Group
I have installed on linux OWASP.
When I try to run a spider this message comes up. It has never happened to me on windows. Does anyone know how to solve it? thanks
Schermata del 2022-08-13 19-51-38.png

ra_0x100

unread,
Aug 13, 2022, 2:11:24 PM8/13/22
to zaprox...@googlegroups.com
Hello!
see please log file contains details of the error

сб, 13 авг. 2022 г. в 20:53, simone zambonardi <simone.z...@gmail.com>:
I have installed on linux OWASP.
When I try to run a spider this message comes up. It has never happened to me on windows. Does anyone know how to solve it? thanks

--
You received this message because you are subscribed to the Google Groups "OWASP ZAP User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to zaproxy-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/zaproxy-users/1e50b338-cb5e-48f5-bf67-0d46cf67337an%40googlegroups.com.

simone zambonardi

unread,
Aug 13, 2022, 2:18:01 PM8/13/22
to OWASP ZAP User Group
I have all these logs that I honestly don't understand. Can you help me? thanks
log.txt

Simon Bennetts

unread,
Aug 15, 2022, 5:10:44 AM8/15/22
to OWASP ZAP User Group
First of all, do you have Firefox installed?
If not then you will need to install it.

If you have got it installed then fir some reason ZAP is not finding it - how did you install Firefox?

In ZAP open the Options dialog and select "Selenium" on the left hand side.
Then configure where the Firefox binary is in the relevant field.
Does the Ajax Spider then work with Firefox?

Cheers,

Simon

kingthorin+owaspzap

unread,
Aug 15, 2022, 6:16:57 AM8/15/22
to OWASP ZAP User Group
I have hit this issue on Windows when Firefox needs to update. Close ZAP, check Task Mgr to make sure there's no Firefox or Geckodriver processes hanging around. Lauch Firefox (from the start menu), let it update, navigate somewhere. Exit Firefox. Open ZAP, things should work nicely now.

simone zambonardi

unread,
Aug 15, 2022, 11:09:19 AM8/15/22
to OWASP ZAP User Group
Firefox is installed on Ubuntu. I poved a program with /usr/bin/ firefox starts. I still have these logs:

1660572236689    geckodriver    INFO    Listening on 127.0.0.1:19085
mkdir: cannot create directory '/run/user/0': Permission denied
1660572236874    mozrunner::runner    INFO    Running command: "/usr/bin/firefox" "--marionette" "-no-remote" "-profile" "/tmp/rust_mozprofilegcaocO"
mkdir: cannot create directory '/run/user/0': Permission denied
Authorization required, but no authorization protocol specified
Error: cannot open display: :0
72323 [ZAP-AjaxSpider] WARN  org.zaproxy.zap.extension.spiderAjax.SpiderThread - Failed to start browser firefox
com.google.inject.ProvisionException: Unable to provision, see the following errors:

1) [Guice/ErrorInCustomProvider]: WebDriverException: Process unexpectedly closed with status 1
Build info: version: 'unknown', revision: 'unknown', time: 'unknown'
System info: host: 'simone-GP72M-7REX', ip: '127.0.1.1', os.name: 'Linux', os.arch: 'amd64', os.version: '5.15.0-43-generic', java.version: '1.8.0_342'
Driver info: driver.version: FirefoxDriver
remote stacktrace:
Message has been deleted

kingthorin+owaspzap

unread,
Aug 15, 2022, 1:27:22 PM8/15/22
to OWASP ZAP User Group
Yup as per the linked issues it's likely because Ubuntu moved to SNAP install for Firefox and Geckodriver isn't allowed to create the profile in /tmp

This is out of ZAP's control.

kingthorin+owaspzap

unread,
Aug 15, 2022, 1:30:02 PM8/15/22
to OWASP ZAP User Group
Oh sorry that was another recent thread, where these had been linked...

ra_0x100

unread,
Aug 15, 2022, 2:21:06 PM8/15/22
to zaprox...@googlegroups.com
Hello to all!
maybe it's a problem with browser - reinstall Firefox

пн, 15 авг. 2022 г. в 20:30, kingthorin+owaspzap <kingt...@gmail.com>:

simone zambonardi

unread,
Aug 16, 2022, 3:53:19 AM8/16/22
to OWASP ZAP User Group
Good morning,
firefox is installed on ubuntu and the binary path is the following /usr/bin/firefox (checked with the which command). How else can I solve?

simone zambonardi

unread,
Aug 16, 2022, 4:33:48 AM8/16/22
to OWASP ZAP User Group
hello, with the command which firefox it returns me the correct path. If I open firefox with / usr / bin / firefox it opens correctly. Are there any other solutions? thanks :)

thc...@gmail.com

unread,
Aug 16, 2022, 4:39:51 AM8/16/22
to zaprox...@googlegroups.com
The problem is starting ZAP as root, is that for a specific reason?

Best regards.

On 16/08/2022 09:33, simone zambonardi wrote:
> hello, with the command *which firefox* it returns me the correct path. If
> I open firefox with */ usr / bin / firefox* it opens correctly. Are there
>>>>> <https://groups.google.com/d/msgid/zaproxy-users/1e50b338-cb5e-48f5-bf67-0d46cf67337an%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>> .
>>>>>
>>>>
>

simone zambonardi

unread,
Aug 16, 2022, 4:45:41 AM8/16/22
to OWASP ZAP User Group
I tried to start it even without root but the problem does not change

thc...@gmail.com

unread,
Aug 16, 2022, 4:46:33 AM8/16/22
to zaprox...@googlegroups.com
Is the error the same? What OS/version are you using?

Best regards.

simone zambonardi

unread,
Aug 16, 2022, 10:06:34 AM8/16/22
to OWASP ZAP User Group
the problem is only with firefox. With chrome it doesn't give any problems. I am using the latest version of firefox, ZAP_2_11_1 on ubuntu

thc...@gmail.com

unread,
Aug 16, 2022, 10:48:11 AM8/16/22
to zaprox...@googlegroups.com
Is that Ubuntu 22? It would be this:
https://github.com/zaproxy/zaproxy/issues/7095

Best regards.

simone zambonardi

unread,
Aug 16, 2022, 12:28:50 PM8/16/22
to OWASP ZAP User Group
I installed firefox from the terminal. Could that be the problem? do I have to install it by downloading it directly from the site? however i am using ubuntu not windows.

simone zambonardi

unread,
Aug 18, 2022, 9:14:34 AM8/18/22
to OWASP ZAP User Group
unfortunately even today I have not been able to solve the problem. I deleted firefox and installed its snap. It still doesn't work. I have tried using Chrome and have not encountered any problems. If you can give me some indication to use firefox with owasp on ubuntu I would be grateful
Reply all
Reply to author
Forward
0 new messages