Skip to content

sanitize user-provided LDFLAG parameters#3129

Merged
mkultraWasHere merged 9 commits into
masterfrom
sanitize-param
Feb 17, 2025
Merged

sanitize user-provided LDFLAG parameters#3129
mkultraWasHere merged 9 commits into
masterfrom
sanitize-param

Conversation

@uruwhy
Copy link
Copy Markdown
Contributor

@uruwhy uruwhy commented Feb 10, 2025

Description

Sanitize user-provided LDFLAG values for custom golang compilation to avoid RCE.

Creates new static methods that can be used by plugins such as sandcat and manx

Sandcat PR: mitre/sandcat#443
Manx PR: mitre/manx#45

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Unit tests
Tested with sandcat and manx plugins

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

@sonarqubecloud
Copy link
Copy Markdown

@mkultraWasHere mkultraWasHere merged commit 32adbf5 into master Feb 17, 2025
@mkultraWasHere mkultraWasHere deleted the sanitize-param branch February 17, 2025 14:36
freebsd-git pushed a commit to freebsd/freebsd-ports that referenced this pull request Mar 6, 2025
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.

2 participants