Skip to content

Conversation

@thekevinm
Copy link
Contributor

FIX FOR:
The endpoint /api/v2/system/package is vulnerable to command injection attacks. Authentication is requred to exploit this vulnerability.

Moved logging from saveZipFile to encryptZipWithNativeMethod for better separation of concerns and consistency with encryptZipWithShellCommand.

Benefits:
- Each encryption method now handles its own success logging
- Simplified saveZipFile logic from 9 lines to 4 lines
- Improved symmetry: both encryption methods follow same pattern
- Better single responsibility principle adherence

Changes:
- Added logging to encryptZipWithNativeMethod at line 702
- Simplified if/else logic to use negation (!$this->encryptZipWithNativeMethod)
- Removed logging from saveZipFile method

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@oleksandrkits oleksandrkits merged commit 2785760 into develop Oct 14, 2025
@oleksandrkits oleksandrkits deleted the dev-ZDI-CAN-26589 branch October 14, 2025 14:37
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.

3 participants