Security testing - Admin Portal 6.5.5 | 06/11/2024

Security testing - Admin Portal 6.5.5 | 06/11/2024


Critical

3.5.1 #1 - Unauthorized Access to System Configuration and Logs

Solved - The export can be done with authentication only.

  • Try to Exports logs with the direct approach: Paste the following sample request into browser:

    [portal URL]/rest/v1/export?query=%20%22federationPolicies%22:true,%22registeredDevices%22:false,%22rejectedDevices%22:false,%22mdmDevices%22:false,%22dlpRules%22:true,%22messages%22:true,%22securityAuditing%22:false,%22maintenanceLogs%22:true,%22casbAdapter%22:true,%22settings%22:true,%22logs%22:true,%22fromDate%22:%222024-08-20%22,%22toDate%22:%222024-08-20%22}
  • You should see the following Error:

image-20241106-095905.png
  • Now try to export the logs by going to Support & Maintenance menu => Logs and Settings => Export button

  • An zip file should be successfully downloaded

 

High

3.7.1 #2 - Cross-Site Scripting (XSS)

Solved - Different characters in the Branding section are not causing any issues

  • Go to branding settings

  • Type in the "Access Portal title" value: {{7*7}}

  • Type in the "Access Portal subtitle" value: javascript:/*-- ></title></style></textarea></script></xmp><svg/onload='+/\"/+/onmouseover=1/+/[*/[]/+alert( 1)//'>

  • Save and Refresh

  • Go to different pages, You should see 7*7 in the title (and not 49), something cut in subtitle, and all the pages should work fine.

image-20241106-101224.png

3.5.3 #1,3,4 - Inconsistent Authorization

Solved - Having an Access Permission Table to assign permissions per user

  • Go to Settings>Site Security

  • Under Access Permissions Table, Set different permissions for your users, Test each one of the following permissions

    image-20241106-103001.png

  • Important: Make sure that you've set up at least one user to be Admin with Setting Access

  • Sign in with each user and ensure the permissions are applied correctly

Medium

3.7.9 #1 - Open Redirect

Solved

  • Sign-out from the Admin Portal

  • Open Browser and paste the following URL:

    [portal url]/account/signout?returnUrl=http://csnc.ch
  • You should see the following page:

    image-20241106-101815.png
  • Click on "sign in again"

  • You should see the following page:

    image-20241106-102145.png

 

3.7.1 #3 - Client-Side Template Injection

Solved - Different characters in the Branding section are not causing any issues

  • Go to branding settings

  • Type in the "Access Portal title" value: {{7*7}}

  • Type in the "Access Portal subtitle" value: javascript:/*-- ></title></style></textarea></script></xmp><svg/onload='+/\"/+/onmouseover=1/+/[*/[]/+alert( 1)//'>

  • Save and Refresh

  • Go to different pages, You should see 7*7 in the title (and not 49), something cut in subtitle, and all the pages should work fine.

image-20241106-101224.png