Using temporary application protections while permanent fixes are developed
Using temporary application protections while permanent fixes are developed connects a security requirement to the behaviour of a real feature. The relevant controls need to remain effective across custom code, integrations and the production configuration. Understanding temporary application protections while permanent fixes are developed helps establish which security property the feature needs and where that property is actually enforced.
What does this involve?
Configuration can change an application's security boundary without changing its business code. Effective production values, inherited defaults, exposed services and operational interfaces need to be assessed together rather than as isolated files.
A virtual patch reduces exposure only for traffic the enforcement layer inspects and attack variants its rules recognize. It does not remove the underlying vulnerability. Test for bypasses and continue the code or vendor fix; rule matching and transformations can miss attacks.
From a purely technical perspective, the number one remediation strategy would be for an organisation to correct the identified vulnerability within the source code of the web application. This concept is universally agreed upon by both web application security experts and system owners. Unfortunately, in real world business situations, there arise many scenarios where updating the source code of a web application is not easy such as:
Why it matters
Consider a realistic failure: a temporary protection blocks one request pattern while an alternate path still reaches the vulnerable operation.
A permissive setting can expose private information or administrative capabilities through a route the application owner did not expect. The consequence depends on how the service is actually deployed and which identities can reach it.
Implementation guidance should be applied to a real feature and its deployment. Framework defaults, custom handlers and integrated services all influence whether the intended protection remains effective.
How penetration testers check for it
Trace the relevant feature from its entry point to the data or operation it protects, including custom code and alternate paths.
- Review effective production settings and inherited defaults.
- Identify exposed management and diagnostic interfaces.
- Trace secret and connection configuration to its use.
- Compare configured policy with observed behaviour.
How to fix it
Use the appropriate maintained mechanisms and verify the result in the actual production configuration.
- Lack of resources - Devs are already allocated to other projects.
- Third-party Software - Code can not be modified by the user.
- Outsourced App Dev - Changes would require a new project.
- Public/Vendor Vulnerability Monitoring - Ensure that you are signed up for all vendor alert mail-lists for commercial software that you are using. This will ensure that you will be notified in the event that the vendor releases vulnerability information and patching data.
- Protect secrets and remove unnecessary diagnostic exposure.
- Check configuration drift during deployment and maintenance.
A setting should be interpreted in its environment. A deliberately public resource and an unintended private exposure can look similar until ownership, purpose and reachable operations are established.
Recheck the changed behaviour against the original failure conditions and the legitimate user journey. Keep enough evidence to show which release and configuration were verified, and include related entry points that depend on the same security decision.
Related issues
- Reducing risk while maintaining legacy applications
- Hardening native C builds with compiler and linker protections
- Auditing application protections against session abuse
Read about our methodology or contact pentested.com to discuss secure development and code review.