Objective
Verify that default, sample, installation, documentation and other known files that are not required for normal production operation are not unnecessarily accessible through the web application.
Web applications are frequently deployed from frameworks, application servers, CMS packages, development templates or vendor distributions that contain files which are useful during installation or development but unnecessary after deployment.
If these files remain accessible, they may disclose implementation details, configuration information, application versions or other information useful to an attacker.
Scope
Consider the following resource classes during the review:
Prerequisites
| Authorization | Confirm that the target is authorized for security testing. |
|---|---|
| Application inventory | Identify the application, framework, server and major components. |
| Deployment information | Understand the intended public web root and application resource structure. |
| Test environment | Prefer a controlled environment where potentially sensitive files can be safely examined. |
Methodology
Use multiple discovery sources rather than relying on a single list of filenames. Known files vary according to the framework, server, application version and deployment process.
| Discovery source | Purpose |
|---|---|
| Application documentation | Identify files supplied by the framework or application. |
| Deployment package | Identify resources that were installed with the application. |
| Public application behavior | Identify resources exposed through normal HTTP requests. |
| Source and configuration review | Determine whether files are intended to be publicly accessible. |
| Automated discovery | Efficiently identify candidate resources for manual validation. |
A file becomes a security concern when it is unnecessarily exposed and creates meaningful information disclosure, functionality exposure or another security impact.
Test procedure
Perform resource discovery only against systems for which you have explicit authorization. Keep request volume appropriate for the target and avoid unnecessary stress on production systems.
Controlled discovery
Discovery should begin with low-impact methods. Escalate only when necessary and when the testing authorization permits it.
Example request
GET /example-resource HTTP/1.1
Host: example.test
Accept: */*
Candidate resources
Depending on the technology stack, candidates may include resources such as:
/installation/
/install/
/setup/
/examples/
/samples/
/demo/
/docs/
/documentation/
/test/
/tests/
These paths are examples only. Do not assume that a resource exists on every application or that its presence automatically constitutes a vulnerability.
Response assessment
| Observation | Interpretation |
|---|---|
| 404 / equivalent | Resource was not found or is not exposed. |
| 403 / equivalent | Resource may exist but direct access is restricted. |
| Successful response | Resource requires further review to determine whether exposure is intended. |
| Redirect | Follow the intended application flow and determine the final resource exposure. |
Expected result
Default, sample, installation and other unnecessary resources are either removed from the deployment, located outside the public web root or appropriately restricted from unauthorized access.
Resources that are intentionally public and required for application operation should not be reported merely because they originated from a framework or vendor distribution.
Failure criteria
Consider the procedure failed when an unnecessary resource is publicly accessible and creates a meaningful security exposure.
A default or installation resource is accessible from the public application and discloses implementation or configuration information that is not required for normal application operation.
Remediation
Remove unnecessary resources from production wherever possible. If a resource is required for operational reasons, restrict access to the smallest appropriate audience.
Preferred remediation order
- Remove unnecessary files from the production deployment.
- Place internal resources outside the public web root.
- Restrict required administrative resources through authentication and authorization controls.
- Apply network restrictions where appropriate.
- Ensure deployment pipelines do not reintroduce removed resources.
- Document intentionally exposed resources.
Example deployment structure
/var/www/
├── public/
│ ├── index.php
│ ├── assets/
│ └── uploads/
│
└── application/
├── config/
├── storage/
├── logs/
└── internal/
The exact directory structure depends on the technology stack. The security principle is to separate publicly served resources from internal application resources.
Verification
After remediation, repeat the requests that previously demonstrated exposure. Verification should confirm both the security control and continued availability of legitimate application resources.
The unnecessary resource is no longer publicly accessible.
The resource remains unnecessarily exposed after remediation.
The required resource or verification condition could not be evaluated.
Evidence requirements
Capture enough information to establish what resource was tested, why it was considered unnecessary and what happened after remediation.
Evidence must not expose credentials, secrets, private keys, session tokens or other sensitive information. Redact sensitive values before publishing or sharing evidence.
Classification
| WebOTG procedure | WebOTG-SM-002 |
|---|---|
| OWASP category | A02:2025 — Security Misconfiguration |
| Procedure type | Default and known resource exposure |
| Assessment result | PASS / FAIL / NOT TESTED |
| Finding severity | Determine based on the information disclosed, exposed functionality and resulting security impact. |
WebOTG-SM-002 is a WebOTG-defined verification procedure. It is not an OWASP-defined test identifier.
References
| Source | Relevance |
|---|---|
| OWASP Top 10:2025 — A02 | Security Misconfiguration category. |
| OWASP Web Security Testing Guide | Configuration and Deployment Management Testing. |
| OWASP ASVS | Application security verification requirements. |
| CWE | Weakness classification and supporting security references. |
Reference links and source versions should be maintained centrally through the WebOTG content-management system so that published procedures can be updated without modifying the page template.