π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
[SECUR-116] fix: ssrf webhook url for ip address #8716
sriram veeraghanta71b0d30afbab
diff --git a/apps/api/plane/app/serializers/webhook.py b/apps/api/plane/app/serializers/webhook.pyindex 7ec3dba5a5..74ebde8920 100644--- a/apps/api/plane/app/serializers/webhook.py+++ b/apps/api/plane/app/serializers/webhook.py@@ -38,7 +38,7 @@ class WebhookSerializer(DynamicBaseSerializer):for addr in ip_addresses:ip = ipaddress.ip_address(addr[4][0])- if ip.is_loopback:+ if ip.is_private or ip.is_loopback or ip.is_reserved or ip.is_link_local:raise serializers.ValidationError({"url": "URL resolves to a blocked IP address."})# Additional validation for multiple request domains and their subdomains@@ -73,7 +73,7 @@ class WebhookSerializer(DynamicBaseSerializer):for addr in ip_addresses:ip = ipaddress.ip_address(addr[4][0])- if ip.is_loopback:+ if ip.is_private or ip.is_loopback or ip.is_reserved or ip.is_link_local:raise serializers.ValidationError({"url": "URL resolves to a blocked IP address."})# Additional validation for multiple request domains and their subdomains