Can I manually modify the Content-Security-Policy (CSP) in the PVWA web.config?
Question
Will the user be able to change or manually add a Content-Security-Policy (CSP) header within the web.config file on the PVWA server to meet custom security requirements?
Environment
14.0;14.2;14.6;15.0 Privileged Access Manager (PAM, self-hosted) Password Vault Web Access
Answer
No, it is not recommended to manually add a CSP header via the <customHeaders> section in the web.config. The PVWA utilizes a specific internal component called the CustomHeadersHandler. This handler is designed to programmatically inject the required security headers, including the CSP, directly into the application response to ensure compatibility with PVWA’s internal functions (such as the V10 interface and various API calls).
Therefore, we do not support CSP at the moment as we have other security controls that address similar vulnerabilities. CSP support is not just adding an appropriate HTTP header. It requires full code refactoring, and it may also affect 3rd party frameworks and libraries depending on the chosen CSP instructions.