Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

x/vulndb: potential Go vuln in github.com/projectdiscovery/nuclei: CVE-2023-37896 #1998

Closed
GoVulnBot opened this issue Aug 4, 2023 · 1 comment
Assignees

Comments

@GoVulnBot
Copy link

CVE-2023-37896 references github.com/projectdiscovery/nuclei, which may be a Go module.

Description:
Nuclei is a vulnerability scanner. Prior to version 2.9.9, a security issue in the Nuclei project affected users utilizing Nuclei as Go code (SDK) running custom templates. This issue did not affect CLI users. The problem was related to sanitization issues with payload loading in sandbox mode. There was a potential risk with payloads loading in sandbox mode. The issue occurred due to relative paths not being converted to absolute paths before doing the check for sandbox flag allowing arbitrary files to be read on the filesystem in certain cases when using Nuclei from Go SDK implementation.

This issue has been fixed in version 2.9.9. The maintainers have also enabled sandbox by default for filesystem loading. This can be optionally disabled if required. The -sandbox option has been deprecated and is now divided into two new options: -lfa (allow local file access) which is enabled by default and -lna (restrict local network access) which can be enabled by users optionally. The -lfa allows file (payload) access anywhere on the system (disabling sandbox effectively), and -lna blocks connections to the local/private network.

References:

Cross references:
No existing reports found with this module or alias.

See doc/triage.md for instructions on how to triage this report.

modules:
    - module: github.com/projectdiscovery/nuclei
      vulnerable_at: 1.1.7
      packages:
        - package: nuclei
description: |-
    Nuclei is a vulnerability scanner. Prior to version 2.9.9, a security issue in
    the Nuclei project affected users utilizing Nuclei as Go code (SDK) running
    custom templates. This issue did not affect CLI users. The problem was related
    to sanitization issues with payload loading in sandbox mode. There was a
    potential risk with payloads loading in sandbox mode. The issue occurred due to
    relative paths not being converted to absolute paths before doing the check for
    `sandbox` flag allowing arbitrary files to be read on the filesystem in certain
    cases when using Nuclei from `Go` SDK implementation.

    This issue has been fixed in version 2.9.9. The maintainers have also enabled
    sandbox by default for filesystem loading. This can be optionally disabled if
    required. The `-sandbox` option has been deprecated and is now divided into two
    new options: `-lfa` (allow local file access) which is enabled by default and
    `-lna` (restrict local network access) which can be enabled by users optionally.
    The `-lfa` allows file (payload) access anywhere on the system (disabling
    sandbox effectively), and `-lna` blocks connections to the local/private
    network.
cves:
    - CVE-2023-37896
references:
    - advisory: https://github.com/projectdiscovery/nuclei/security/advisories/GHSA-2xx4-jj5v-6mff
    - fix: https://github.com/projectdiscovery/nuclei/pull/3927
    - web: https://github.com/projectdiscovery/nuclei/releases/tag/v2.9.9

@tatianab tatianab self-assigned this Aug 4, 2023
@gopherbot
Copy link
Contributor

Change https://go.dev/cl/516175 mentions this issue: data/reports: add GO-2023-1998.yaml

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

3 participants