Skip to content

Redact secrets and fix comment highlighting in config show - #1097

Open
TorisutanKholwes wants to merge 4 commits into
opensvc:mainfrom
TorisutanKholwes:features/redact-secrets
Open

Redact secrets and fix comment highlighting in config show#1097
TorisutanKholwes wants to merge 4 commits into
opensvc:mainfrom
TorisutanKholwes:features/redact-secrets

Conversation

@TorisutanKholwes

Copy link
Copy Markdown
Contributor

No description provided.

log.Infof("serve config file %s to %s", objPath, userFromContext(ctx).GetUserName())
return ctx.File(filename)

content, err := os.ReadFile(filename)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potential file inclusion attack via reading file - high severity
If an attacker can control the input leading into the ReadFile function, they might be able to read sensitive files and launch further attacks with that information.

Show fix

Remediation: Ignore this issue only after you've verified or sanitized the input going into this function.

Reply @AikidoSec ignore: [REASON] to ignore this issue.
More info

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

Successfully merging this pull request may close these issues.

1 participant