Skip to content

fix: prevent command injection by replacing exec with execFile#13

Open
123mutouren321414 wants to merge 1 commit into
0xKoda:mainfrom
123mutouren321414:fix-command-injection
Open

fix: prevent command injection by replacing exec with execFile#13
123mutouren321414 wants to merge 1 commit into
0xKoda:mainfrom
123mutouren321414:fix-command-injection

Conversation

@123mutouren321414
Copy link
Copy Markdown

  • Replace child_process.exec with execFile
  • Pass tshark arguments as an array
  • Add strict validation for interface input
  • Preserve existing functionality

- Replace child_process.exec with execFile
- Pass tshark arguments as an array
- Add strict validation for interface input
- Preserve existing functionality
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