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

gosec: hook.go: G304 (CWE-22): Potential file inclusion via variable #16

Closed
phires opened this issue Sep 5, 2023 · 0 comments
Closed
Assignees

Comments

@phires
Copy link
Owner

phires commented Sep 5, 2023

[/go-guerrilla/log/hook.go:130] - G304 (CWE-22): Potential file inclusion via variable (Confidence: HIGH, Severity: MEDIUM)
    129: func (hook *LogrusHook) openCreate(dest string) (err error) {
  > 130:        fd, err := os.OpenFile(dest, os.O_CREATE|os.O_TRUNC|os.O_WRONLY, 0644)
    131:        if err != nil {
@phires phires self-assigned this Sep 5, 2023
phires added a commit that referenced this issue Jun 10, 2024
@phires phires closed this as completed Jun 10, 2024
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

1 participant