Skip to content

fix: Path Manipulation hardening (fcli home, variables, zip/tar extraction) - #1172

Open
jmadhur87 wants to merge 13 commits into
fortify:dev/v3.xfrom
jmadhur87:mjain6/FAAVulnFixPathManipulation
Open

jmadhur87 wants to merge 13 commits into
fortify:dev/v3.xfrom
jmadhur87:mjain6/FAAVulnFixPathManipulation

Conversation

@jmadhur87

Copy link
Copy Markdown
Contributor

Fixes 4 Fortify Path Manipulation findings, which come from 3 root causes:

Finding Location Fix
Home containment bypass FcliDataHelper.resolveFcliHomePath Normalize first, then check containment for relative and absolute paths
Unvalidated variable name FcliVariableHelper (get/contents/delete/exists) checkVariableName() in getVariablePath()
Zip slip / Tar slip FileUtils.defaultExtractPathResolver (shared by extractZip and extractTarGZ) Normalize before the startsWith check; tar writes to the validated path

This branch has not been deployed

No deployments
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