Description | This article explains a scenario where Fortiproxy failed to block the file upload in SharePoint even though it was blocked in the application control. |
Scope | FortiProxy |
Solution |
Setup:
config firewall policy
43947: app id of Microsoft.SharePoint_File.Upload. 43950:app id of Microsoft.SharePoint_File.Download.
FPX2KG-3 # diag autoupdate version | grep -i -A 6 'application'
In the above setup, the file download from Microsoft Sharepoint is getting blocked. But, while trying to upload the file into SharePoint, it is getting uploaded successfully even though it is blocked by application control.
Wad debug shows “Matched action=pass”:
ss[v] *uninit(-1) l0 name 'AddUsingPath(DecodedUrl=@a2,AutoCheckoutOnInvalidData=@a3,XorHash=@a4)' filetype detector sync ss[v] file 'AddUsingPath(DecodedUrl=@a2,AutoCheckoutOnInvalidData=@a3,XorHash=@a4)' type: pdf(42) ss[v] pdf(42) l0 name 'AddUsingPath(DecodedUrl=@a2,AutoCheckoutOnInvalidData=@a3,XorHash=@a4)' file detection done, type 42, password_protected 0 , scanunit_only 0 ss[v] pdf(42) l0 name 'AddUsingPath(DecodedUrl=@a2,AutoCheckoutOnInvalidData=@a3,XorHash=@a4)' filetype detector close [I]wad_http_ips_output_sync :1388 http-ips=0x7fe4648a74c0(body): out sync, n_read 16375/0, end 0 [I]wad_ips_flow_match__body :662 match ctype pdf(5) [I]wad_ips_http_msg_task_update_ips_scan_range:1956 ips scan finished, n_scanned 20935 skip-after 20480 [I]wad_ips_http_msg_task_update_app_scan_range:1938 app scan finished, n_scanned 20935 scan_range 20480 [I]wad_ips_http_on_match_app :1055 http-ips=0x7fe4648a74c0(body): Matched action=pass(0) name='Microsoft.SharePoint'(16190) group='applications2' cat=28 can_develop=1
Upon taking wad debug while uploading the file, found that the the application was identified as: 'Microsoft.SharePoint'(16190) instead of 'Microsoft.SharePoint_File.Upload'(43947).
Workaround to block the upload, change the below setting in the FortiProxy:
config ips settings set proxy-inline-ips disable end
This behavior is changed from FortiProxy v7.6.1 and above. |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.