Skip to content

Harden ClawHub ZIP extraction and add security tests#3

Open
Ridwannurudeen wants to merge 2 commits intoEthereumPhone:mainfrom
Ridwannurudeen:chore/zip-extraction-hardening
Open

Harden ClawHub ZIP extraction and add security tests#3
Ridwannurudeen wants to merge 2 commits intoEthereumPhone:mainfrom
Ridwannurudeen:chore/zip-extraction-hardening

Conversation

@Ridwannurudeen
Copy link

Summary\n- harden ClawHub ZIP extraction against zip-slip and zip-bomb patterns\n- enforce bounded extraction limits (entry count, per-entry size, total uncompressed size)\n- add focused security tests for archive handling behavior via public download path\n\n## Changes\n- ClawHubApi.extractZip: canonical path containment + bounded copy with limits\n- add ClawHubApiSecurityTest covering:\n - safe archive extraction\n - zip-slip rejection\n - excessive entry-count rejection\n - oversized entry rejection\n- add test dependency: mockwebserver\n\n## Notes\n- local Gradle execution wasn't possible here because Java/JAVA_HOME is missing

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