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

CLI Flag to Disable Headless Mode's Chromium Sandbox #3878

Closed
ErikOwen opened this issue Jun 26, 2023 · 2 comments · Fixed by #3951
Closed

CLI Flag to Disable Headless Mode's Chromium Sandbox #3878

ErikOwen opened this issue Jun 26, 2023 · 2 comments · Fixed by #3951
Assignees
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.

Comments

@ErikOwen
Copy link

ErikOwen commented Jun 26, 2023

Please describe your feature request:

It would be nice to have a CLI flag to disable the Chromium sandbox that is configured when running headless templates. Right now this logic is what determines if chromium's sandbox is disabled or not.

   -ho, -headless-options string[]   start headless chrome with additional options

Describe the use case of this feature:

When running on AWS Fargate I want to be able to use Nuclei as a non-root user and still be able to launch chromium. I wish to do this by running Nuclei as a non-root user and passing in a flag to Nuclei to instruct Nuclei to disable chromium's sandbox functionality. Right now AWS Fargate does not allow containers to run in privileged mode, so the --no-sandbox flag must be passed to chromium for it to be able to run on AWS Fargate (see more information here). So currently the only way to run nuclei's headless templates in AWS Fargate is by running Nuclei as root, which is not ideal.

@ErikOwen ErikOwen added the Type: Enhancement Most issues will probably ask for additions or changes. label Jun 26, 2023
@ehsandeep
Copy link
Member

@ErikOwen I've updated the issue to add flag option, similar to what we have in Katana, that lets the user define any chrome related options as needed.

@dogancanbakir dogancanbakir self-assigned this Jul 19, 2023
@dogancanbakir dogancanbakir linked a pull request Jul 19, 2023 that will close this issue
4 tasks
@ehsandeep ehsandeep added this to the nuclei v2.9.10 milestone Jul 28, 2023
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Jul 28, 2023
@ehsandeep
Copy link
Member

@ErikOwen this is now possible with latest release - https://github.com/projectdiscovery/nuclei/releases/tag/v2.9.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Enhancement Most issues will probably ask for additions or changes.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants