OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
security[Op#53019]: clarify to security tool that there's no injection risk
Kabiru Mwenja0cc247f0fef3
diff --git a/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb b/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rbindex e3466fcade3..5c8900bbcbb 100644--- a/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb+++ b/modules/gitlab_integration/lib/open_project/gitlab_integration/hook_handler.rb@@ -50,7 +50,7 @@ module OpenProject::GitlabIntegrationRails.logger.debug { "Received gitlab webhook #{event_type}" }return 404 unless KNOWN_EVENTS.include?(event_type)- return 403 unless user.present?+ return 403 if user.blank?payload = params[:payload].permit!@@ -58,7 +58,8 @@ module OpenProject::GitlabIntegration.merge('open_project_user_id' => user.id,'gitlab_event' => event_type)- OpenProject::Notifications.send(:"gitlab.#{event_type}", payload)+ event_name = :"gitlab.#{event_type}"+ OpenProject::Notifications.send(event_name, payload)200end