Skip to content

Command Injectionの解消(Slack通知処理の安全化) #1736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

nacchan99
Copy link
Contributor

cf. #1727
cf. #1729

config/brakeman.ignore に登録されていた Command Injection の警告を解消しました!

やったこと

  • lib/statistics/aggregation.rb:163 の警告を修正
  • lib/upcoming_events/aggregation.rb:89 の警告を修正
  • 解消済みの警告を .ignore から削除

- app/services/slack_notifier.rb を新規追加
- curlコマンドをNet::HTTPに置換し、外部入力を安全に処理
- タイムアウト設定とエラーハンドリングを追加
- 2箇所のCommand Injection警告を解消
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