Sunday, 30 August 2026 ● Independent reference platform
WebOTG
OWASP TOP 10 · 2025

A02:2025 — Security Misconfiguration

A practical security testing guide for identifying, reproducing, remediating and verifying security misconfiguration across web applications, APIs, servers and supporting infrastructure.

Category A02 Domain Configuration Security Version 2025 Procedure WebOTG Reviewed 30 Aug 2026
01 / OBJECTIVE

What are we verifying?

Verification objective

Verify that the application and its supporting infrastructure use secure configurations appropriate to their intended function and deployment environment, and that unnecessary functionality or information is not exposed.

Security misconfiguration occurs when security controls are missing, incorrectly implemented, unnecessarily enabled, inconsistently configured or left in an insecure default state.

The assessment can extend beyond application source code to web servers, application servers, frameworks, databases, cloud services, containers, operating systems and administrative interfaces.

Configuration is part of the security boundary

An application can contain secure code and still be vulnerable because its deployed environment is incorrectly configured.

02 / SCOPE

What should be tested?

The scope should include configuration controls that can expose information, functionality, credentials, services or infrastructure.

Component Areas to review
Application Debug mode, error handling, environment configuration and insecure defaults.
Web server Directory listing, HTTP methods, exposed files and server configuration.
Framework Development features, default routes, middleware and security settings.
Database Network exposure, accounts, privileges and unnecessary services.
Cloud services Storage permissions, public resources, network policies and service configuration.
Containers Privileges, exposed ports, secrets and runtime configuration.
Administration Management interfaces, default accounts and administrative access paths.
03 / IDENTIFICATION

How to identify misconfiguration

Start with the intended security baseline for the environment. Compare the deployed configuration and externally observable behavior against that baseline.

Configuration review

  • Identify development-only functionality exposed in production.
  • Review error responses for unnecessary internal information.
  • Identify unnecessary services, features and administrative interfaces.
  • Review exposed files, directories and resources.
  • Review default accounts and credentials.
  • Review file and directory permissions.
  • Compare security configuration between environments.
  • Review cloud and infrastructure permissions.

Configuration baseline

Baseline item Expected state
Debugging Disabled in production
Default credentials Removed or securely changed
Directory indexing Disabled unless explicitly required
Administrative interfaces Restricted to authorized access
Unnecessary services Disabled or removed
Error disclosure No unnecessary sensitive details
04 / TEST CATALOGUE

WebOTG verification procedures

The following procedures are WebOTG testing procedures mapped to the OWASP Top 10:2025 A02 category. They are not OWASP-defined test identifiers.

WebOTG-SM-001 Application Platform Configuration

Review application platform configuration

Objective: Determine whether the application platform is configured according to the approved security baseline.

Procedure

  1. Identify the application framework and runtime environment.
  2. Obtain the approved configuration baseline.
  3. Review security-relevant configuration values.
  4. Compare deployed configuration against the approved baseline.
  5. Record deviations that introduce security exposure.

Expected result

Security-relevant platform settings conform to the approved configuration baseline.

Failure criteria

A security-relevant configuration is missing, insecure, unnecessarily enabled or inconsistent with the approved baseline.

WebOTG-SM-002 Default and Known Files

Check for default and known files

Objective: Determine whether default, sample or known files are unnecessarily exposed by the deployed application.

Procedure

  1. Identify files installed by the application or framework that are not required in production.
  2. Determine whether those files are accessible through the web server.
  3. Review accessible files for information that should not be publicly available.
  4. Remove unnecessary files or restrict access where required.

Expected result

Unnecessary sample, test, installation or default files are not publicly accessible.

WebOTG-SM-003 Debug and Development Features

Verify debugging functionality

Objective: Determine whether development or debugging functionality is exposed in a production environment.

Procedure

  1. Confirm the environment under test.
  2. Review the application's production configuration.
  3. Trigger a controlled, harmless application error.
  4. Review the response for stack traces, internal paths, configuration details, credentials or other sensitive information.

Expected result

Production error handling does not expose unnecessary implementation or configuration details.

WebOTG-SM-004 Error Handling

Verify error information disclosure

Objective: Determine whether application or server errors expose information unnecessary to the user.

Procedure

  1. Identify controlled error conditions.
  2. Trigger each condition in the authorized test environment.
  3. Capture the resulting response.
  4. Review the response for internal paths, framework details, database information, stack traces or secrets.

Expected result

Error responses provide useful user-facing information without unnecessary internal implementation details.

WebOTG-SM-005 Directory Listing

Verify directory indexing

Objective: Determine whether web-accessible directories expose their contents through directory indexing.

Procedure

  1. Identify directories intended to be web-accessible.
  2. Determine whether directory indexing is enabled by the web server.
  3. In an authorized environment, request a test directory without an index resource.
  4. Review the server response.

Expected result

Directory contents are not listed unless directory indexing is explicitly required and controlled.

WebOTG-SM-006 File and Extension Handling

Review sensitive file handling

Objective: Determine whether files that should not be directly served can be requested through the web server.

Procedure

  1. Identify application configuration, backup and source-related file types.
  2. Determine whether any are located inside web-accessible directories.
  3. Verify server behavior for authorized test files.
  4. Confirm that protected files are not returned as downloadable content.

Expected result

Sensitive configuration, source, backup and internal files are not unintentionally served by the web server.

WebOTG-SM-007 Backup and Unreferenced Files

Review backup and unreferenced files

Objective: Determine whether backup, temporary or unreferenced files are unnecessarily exposed.

Procedure

  1. Review deployment directories.
  2. Identify backup and temporary artifacts.
  3. Determine whether those artifacts are accessible through the web server.
  4. Remove unnecessary artifacts or move them outside the public web root.

Expected result

Backup and temporary files are not publicly accessible unless explicitly required.

WebOTG-SM-008 Administrative Interface

Verify administrative interface exposure

Objective: Determine whether administrative functionality is appropriately restricted.

Procedure

  1. Inventory documented administrative interfaces.
  2. Determine which interfaces must be externally accessible.
  3. Verify authentication and authorization requirements.
  4. Review network-level restrictions where applicable.

Expected result

Administrative functionality is accessible only through authorized paths and appropriate security controls.

WebOTG-SM-009 HTTP Method Configuration

Review HTTP method configuration

Objective: Determine whether HTTP methods are enabled beyond what the application requires.

Procedure

  1. Document the HTTP methods required by the application.
  2. Review web server and application configuration.
  3. Test the approved endpoints using the methods defined by the application design.
  4. Verify that unnecessary methods are rejected or appropriately controlled.

Expected result

HTTP methods are limited and configured according to application requirements.

WebOTG-SM-010 HTTP Security Headers

Verify HTTP security headers

Objective: Determine whether required HTTP security headers are correctly configured for the application's security baseline.

Procedure

  1. Establish the application's approved security-header baseline.
  2. Capture representative responses from public and authenticated endpoints.
  3. Compare observed headers with the baseline.
  4. Review missing, contradictory or unsafe configuration.

Expected result

Required security headers are present and configured consistently with the application's security requirements.

WebOTG-SM-011 File and Directory Permissions

Review filesystem permissions

Objective: Determine whether application files and directories have unnecessarily broad permissions.

Procedure

  1. Identify sensitive application files and directories.
  2. Review owner, group and permission settings.
  3. Compare them against the deployment security baseline.
  4. Verify that the web process has only the access it requires.

Expected result

Files and directories follow least-privilege permissions appropriate to their function.

WebOTG-SM-012 Cloud Storage

Verify cloud storage permissions

Objective: Determine whether cloud-hosted storage resources are accessible beyond their intended authorization boundary.

Procedure

  1. Inventory storage resources associated with the application.
  2. Document intended public and private access.
  3. Review access policies and permissions.
  4. Verify that private resources cannot be accessed without appropriate authorization.

Expected result

Cloud storage permissions match the intended access model and least-privilege requirements.

WebOTG-SM-013 Cross-Domain Policy

Review cross-domain configuration

Objective: Determine whether cross-origin or cross-domain policies permit broader access than intended.

Procedure

  1. Identify endpoints that support cross-origin requests.
  2. Document the approved origins.
  3. Review server-side cross-origin configuration.
  4. Test authorized and unauthorized origins in the approved environment.

Expected result

Cross-origin access is limited to explicitly approved origins and application requirements.

WebOTG-SM-014 Path Configuration

Review application path configuration

Objective: Determine whether filesystem and application paths are configured in a way that exposes unintended resources.

Procedure

  1. Identify filesystem paths used by the application.
  2. Determine which paths are intentionally exposed through the web server.
  3. Review aliases, mounts and application routing configuration.
  4. Verify that internal paths cannot be unintentionally reached through public application routes.

Expected result

Public routing exposes only intended application resources.

WebOTG-SM-015 Network and Infrastructure

Review network exposure

Objective: Determine whether infrastructure services are exposed beyond their intended network boundary.

Procedure

  1. Inventory services required by the application.
  2. Identify intended network exposure.
  3. Review firewall, security-group and network policy configuration.
  4. Verify that internal services are not unnecessarily exposed.

Expected result

Network exposure matches the documented architecture and least-privilege requirements.

WebOTG-SM-016 Configuration Drift

Verify configuration consistency

Objective: Determine whether configuration differences between environments introduce security weaknesses.

Procedure

  1. Establish the approved configuration baseline.
  2. Compare development, staging and production security-relevant settings.
  3. Identify unexplained differences.
  4. Determine whether differences are intentional and documented.
  5. Correct unauthorized configuration drift.

Expected result

Security-relevant configuration differences are intentional, documented and approved.

05 / ROOT CAUSE

Why does it happen?

Security misconfiguration commonly results from insecure defaults, incomplete hardening, configuration drift, inconsistent environments or insufficient review of infrastructure changes.

Common causes

  • Development configuration deployed to production.
  • Default accounts or credentials left enabled.
  • Unnecessary features or services remaining active.
  • Detailed error handling enabled in production.
  • Security settings differing between environments.
  • Manual configuration changes without change control.
  • Excessive filesystem or cloud permissions.
  • Missing configuration review during deployment.
Configuration drift

A configuration can become insecure after deployment when individual settings are changed without maintaining the approved security baseline.

06 / REMEDIATION

How to fix it

Remediation should establish a secure baseline and enforce it consistently across development, deployment and production environments.

Production debugging

application-config.php EXAMPLE
// Development
$debug = true;

// Production
$debug = false;

The exact implementation depends on the framework and deployment architecture. The security requirement is that production debugging functionality must not expose sensitive implementation details.

Disable unnecessary directory indexing

Apache configuration EXAMPLE
<Directory "/var/www/html/uploads">
    Options -Indexes
</Directory>

General remediation principles

  • Establish documented secure configuration baselines.
  • Remove unnecessary functionality and services.
  • Disable development and debugging functionality in production.
  • Remove or securely change default credentials.
  • Restrict administrative interfaces.
  • Apply least-privilege permissions.
  • Protect sensitive files from public access.
  • Review cloud resource permissions.
  • Automate configuration validation where practical.
  • Monitor and correct configuration drift.
07 / VERIFICATION

How to verify the fix

Verification must repeat the relevant test after remediation. A configuration change or scanner result alone should not be considered proof that the issue has been resolved.

Verification test Expected result Status
Debugging Production debugging disabled PASS
Error handling No unnecessary sensitive details PASS
Directory listing Directory contents not exposed PASS
Administrative access Appropriate controls enforced PASS
Sensitive files Files not publicly accessible PASS

Assessment result

PASS

The tested configuration satisfied the defined security requirement.

FAIL

The tested configuration did not satisfy the defined security requirement.

NOT TESTED

The required test condition could not be evaluated.

Assessment discipline

Not Tested must not be recorded as Pass. The assessment result should accurately reflect what was actually verified.

08 / EVIDENCE

What should be recorded?

Evidence should demonstrate the original condition, the remediation performed and the result of the subsequent verification.

Application and environment
Configuration item or component tested
Original observed configuration
Applicable security baseline
Remediation performed
Retest result
Configuration evidence
Verification date and tester
09 / FRAMEWORK MAPPING

Standards and references

Framework Reference / relationship
OWASP Top 10 A02:2025 — Security Misconfiguration
OWASP WSTG Configuration and Deployment Management Testing
OWASP ASVS Configuration, deployment and security control verification
CWE Configuration-related weakness classifications
WebOTG classification

The WebOTG-SM identifiers on this page are WebOTG-defined procedures. They should not be interpreted as OWASP test identifiers.

10 / REFERENCES

Official references