Skip to content

prevent zip-slip in DeploymentEngine.addAsWebResources#1227

Open
rootvector2 wants to merge 1 commit into
apache:masterfrom
rootvector2:addaswebresources-zip-slip
Open

prevent zip-slip in DeploymentEngine.addAsWebResources#1227
rootvector2 wants to merge 1 commit into
apache:masterfrom
rootvector2:addaswebresources-zip-slip

Conversation

@rootvector2

Copy link
Copy Markdown

found while auditing the aar deployment path: addAsWebResources writes each WWW/ archive entry through new File(out, entryName) without containment, so a crafted aar entry like WWW/../../evil.jsp escapes the per-service web resource directory and writes to an arbitrary path; the fix canonicalizes each target and skips entries that resolve outside out.

Signed-off-by: rootvector2 <dxbnaveed.k@gmail.com>
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