RemoteUser: Hide from Swagger #9961
+17
−1
Merged
DryRunSecurity / Authn/Authz Analyzer
succeeded
Apr 22, 2024 in 0s
DryRun Security
Details
Potentially Sensitive Functions: 3 detected
⚠️ Potential Authn/Authz Function Used or Modified dojo/remote_user.py (click for details)
Type | Potential Authn/Authz Function Used or Modified |
Description | The code contains a RemoteUserScheme class which is likely related to authentication or authorization. The get_security_definition method in this class suggests that it is responsible for defining the security scheme for the API, which is typically related to authentication or authorization mechanisms. |
File Name | dojo/remote_user.py |
Code Link | django-DefectDojo/dojo/remote_user.py Lines 98 to 106 in eae3221 |
⚠️ Potential Authn/Authz Function Used or Modified dojo/settings/settings.dist.py (click for details)
Type | Potential Authn/Authz Function Used or Modified |
Description | The code contains several configuration options related to authentication, specifically the 'RemoteUser' authentication mechanism. The options include setting trusted proxy addresses, whether the 'RemoteUser' mechanism should only be used on the login page, and whether it should be visible in the Swagger documentation. These configuration options suggest that the code contains functions or mechanisms related to authentication and authorization. |
File Name | dojo/settings/settings.dist.py |
Code Link | django-DefectDojo/dojo/settings/settings.dist.py Lines 180 to 188 in eae3221 |
⚠️ Potential Authn/Authz Function Used or Modified dojo/settings/settings.dist.py (click for details)
Type | Potential Authn/Authz Function Used or Modified |
Description | The code contains several variables related to authentication and authorization, such as AUTH_REMOTEUSER_LASTNAME_HEADER , AUTH_REMOTEUSER_GROUPS_HEADER , AUTH_REMOTEUSER_GROUPS_CLEANUP , and AUTH_REMOTEUSER_VISIBLE_IN_SWAGGER . These variables suggest that the code is dealing with remote user authentication and authorization, potentially using headers or other mechanisms to identify and authorize users. |
File Name | dojo/settings/settings.dist.py |
Code Link | django-DefectDojo/dojo/settings/settings.dist.py Lines 1044 to 1050 in eae3221 |
Loading