eclipse-aaspe / server

C# based server for AASX packages
Other
72 stars 52 forks source link

Fix for User-controlled bypass of sensitive method in AasSecurityAuthorizationHandler #278

Closed Freezor closed 5 months ago

Freezor commented 5 months ago

Description

This PR addresses a security concern where user-controlled data (httpRoute) was used to determine authentication logic in the AuthorizeAas method of AasSecurityAuthorizationHandler. This could potentially allow users to bypass security checks by manipulating the httpRoute parameter.

Motivation and Context

The motivation behind this change is to strengthen the security of the application by ensuring that authentication decisions are not influenced by user-controlled inputs. By separating the authorization logic into dedicated methods and ensuring fixed routes for sensitive checks, we mitigate the risk of unauthorized access.

Fixes # (issue)

Type of change

How Has This Been Tested?

The changes have been tested by manually testing the integration.

Screenshots (if appropriate):

N/A

Checklist: