WebOTG Security Testing Library ● Public reference
WebOTG
WEBOTG SECURITY TESTING PROCEDURE

WebOTG-A05-003 — Security Misconfiguration Review

A structured procedure for identifying, reproducing, remediating and verifying insecure application, server, framework, platform and deployment configuration.

WebOTG ID A05-003 OWASP A02:2025 Type Configuration Review Method Manual + Tool-Assisted Version 1.0
01 / OBJECTIVE

Objective

What are we verifying?

Verify that the application, web server, framework, platform and deployment environment expose only the configuration, functionality and information required for their intended operation.

Security misconfiguration occurs when security-relevant settings are missing, incorrectly applied, unnecessarily enabled or inconsistent across environments.

The assessment must consider configuration as a complete security control rather than focusing only on visible HTTP responses. A secure application can still be exposed by an unsafe server setting, verbose error configuration, unnecessary service or insecure deployment default.

02 / SCOPE

Scope

Review security-relevant configuration across the complete application delivery stack.

WEB SERVER

Server modules, directory access, methods, default files, version disclosure and TLS settings.

APPLICATION

Debug mode, framework settings, error handling, session configuration and security defaults.

PLATFORM

Operating-system services, permissions, exposed ports, packages and runtime configuration.

CLOUD / HOSTING

Storage exposure, network controls, identity configuration and externally accessible services.

ERROR HANDLING

Stack traces, internal paths, database errors, framework diagnostics and verbose responses.

SECURITY HEADERS

Browser security controls and response headers appropriate to the application's architecture.

03 / PREREQUISITES

Prerequisites

Authorization Confirm authorization to perform configuration and security testing.
Architecture Obtain an application architecture or deployment diagram where available.
Technology inventory Identify operating system, web server, application framework, runtime, database, reverse proxy and hosting platform.
Configuration access Where authorized, obtain read-only access to relevant configuration files and administrative settings.
Environment information Distinguish production, staging, development and test configuration.
04 / METHODOLOGY

Methodology

Security configuration should be evaluated using both external observation and authorized configuration review. External testing identifies what is actually exposed; configuration review identifies why it is exposed.

Review stage Primary question
Discovery What technologies, services and interfaces are exposed?
Baseline What configuration is required for normal business operation?
Hardening Which unnecessary features, services or permissions remain enabled?
Exposure Does configuration disclose information or expose functionality unnecessarily?
Verification Does the hardened configuration remain functional and secure?
05 / PROCEDURE

Test procedure

01
Identify the technology stack Determine the web server, framework, runtime, operating system and supporting services.
02
Enumerate externally visible behavior Review HTTP responses, available methods, redirects, error responses, headers and publicly accessible resources.
03
Review security configuration Where authorized, inspect server, application, runtime, platform and deployment settings.
04
Compare against a secure baseline Compare observed configuration with vendor, framework and organizational hardening guidance.
05
Validate security impact Determine whether the configuration creates information disclosure, unauthorized access, unnecessary exposure or another security impact.
06
Apply controlled remediation Change only the relevant security configuration and document the change.
07
Re-test the original exposure Confirm that the externally observable weakness is no longer present.
08
Confirm operational integrity Verify that required application functionality continues to operate correctly.
06 / ATTACK SURFACE

Attack surface review

Identify unnecessary exposure before attempting deeper exploitation.

Unnecessary HTTP methods
Administrative interfaces exposed to untrusted networks
Directory listing or unintended file browsing
Default or sample application resources
Development and debugging endpoints
Unnecessary services and exposed ports
Unrestricted management functionality
Technology and version information unnecessarily disclosed
07 / HTTP SECURITY HEADERS

HTTP security header review

Review response headers according to the application's actual browser-facing security requirements. Do not add headers blindly; each control must be compatible with the application's architecture.

Control Review focus
Content-Security-Policy Determine whether an appropriate CSP is implemented and whether it meaningfully reduces browser-side attack surface.
Strict-Transport-Security Verify HTTPS enforcement where applicable and appropriate.
X-Content-Type-Options Verify MIME-type sniffing protection where applicable.
Referrer-Policy Verify that referrer information is appropriately restricted.
Permissions-Policy Restrict browser capabilities that the application does not require.
08 / ERROR HANDLING

Error handling and information disclosure

Trigger controlled application errors and determine whether responses reveal implementation details that should remain internal.

Stack traces are not exposed to untrusted users.
Internal filesystem paths are not disclosed.
Database connection details are not exposed.
Internal hostnames and service information are not unnecessarily disclosed.
Debugging output is disabled in production.
Detailed diagnostic information is available through protected server-side logging instead.
Do not suppress useful server-side diagnostics

Production systems should hide sensitive diagnostic information from external users, but security teams still require sufficient internal logging to investigate failures and security events.

09 / SERVER CONFIGURATION

Web server and platform configuration

DIRECTORY ACCESS

Verify that only intended directories and resources are accessible through the web server.

DEFAULT RESOURCES

Remove sample applications, default pages, test files and unnecessary documentation.

HTTP METHODS

Disable methods that the application does not require.

SERVER DISCLOSURE

Minimize unnecessary disclosure of server, framework and runtime information.

FILE PERMISSIONS

Verify that application files, configuration files and secrets have appropriate permissions.

SERVICES

Disable services and network listeners that are not required for the application.

10 / APPLICATION CONFIGURATION

Application and framework configuration

Production mode is explicitly enabled.
Debug functionality is disabled in production.
Framework development tools are not publicly exposed.
Default credentials are removed or changed.
Unused framework modules and plugins are removed.
Sensitive configuration is not committed to public source repositories.
Environment-specific secrets are stored using an appropriate secrets-management mechanism.
11 / DEPLOYMENT

Deployment configuration

Configuration drift is a common source of security misconfiguration. The secure state must therefore be reproducible rather than manually maintained on individual servers.

Area Verification requirement
Environment parity Security-relevant configuration should be consistently applied across deployment environments.
Configuration management Security configuration should be version-controlled or otherwise reproducibly managed.
Secrets Secrets should not be embedded in source code or publicly accessible configuration.
Unused components Development packages, sample files, diagnostic endpoints and unused services should not be deployed unnecessarily.
Change control Security configuration changes should be reviewed, tested and traceable.
12 / REPRODUCTION

Controlled reproduction

Example: verbose error response

Controlled malformed request TEST
GET /application/resource?value=<invalid-test-value> HTTP/1.1
Host: application.example

Record the response and determine whether it exposes stack traces, internal paths, framework diagnostics, database details, source locations or other information that should not be disclosed to an untrusted requester.

Configuration evidence

Conceptual production configuration EXPECTED
environment = production
debug = false
verbose_errors = false

The exact configuration syntax is technology-specific. The important requirement is that production behavior is explicitly hardened and independently verifiable.

13 / ASSESSMENT

Assessment

Result Interpretation
Secure Required functionality is available while unnecessary security exposure is disabled.
Misconfigured A security-relevant configuration deviates from the required secure baseline.
Exposed The misconfiguration produces an observable security exposure.
Exploitable The exposure can be used to obtain an unauthorized security-impacting result.
14 / FAILURE CRITERIA

Failure criteria

Production debugging or verbose diagnostics are exposed to unauthorized users.
Default accounts, credentials or sample resources remain enabled.
Unnecessary administrative interfaces are publicly reachable.
Directory browsing or unintended file access is enabled.
Sensitive configuration or secrets are exposed.
Unnecessary services or network interfaces are exposed.
Security configuration differs materially between environments without justification.
Security controls are configured inconsistently or rely on insecure defaults.
Example finding MISCONFIGURATION

The production application exposes framework diagnostic information when an invalid request is processed. The response contains implementation details that are unnecessary for the requesting user and may assist further attack activity. Production error handling is therefore not configured according to the required security baseline.

15 / REMEDIATION

Remediation

  1. Establish a documented secure configuration baseline for each supported technology.
  2. Remove unnecessary frameworks, modules, plugins, services and sample resources.
  3. Disable production debugging and verbose error output.
  4. Remove or disable default accounts and credentials.
  5. Restrict administrative and management interfaces using appropriate network and authentication controls.
  6. Disable directory browsing and unintended file access.
  7. Minimize unnecessary server and framework version disclosure.
  8. Store secrets outside source code and publicly accessible configuration files.
  9. Apply least privilege to operating-system processes, service accounts and application files.
  10. Manage security configuration through repeatable deployment processes rather than manual server changes.
  11. Continuously review configuration drift and newly introduced services.
Hardening must be repeatable

Manually fixing one production server is not a complete remediation if the same insecure configuration can return during the next deployment. The secure baseline should be encoded into the organization's deployment and configuration-management process.

16 / VERIFICATION

Post-remediation verification

01
Repeat the original test Reproduce the request or condition that previously demonstrated the misconfiguration.
02
Confirm the exposure is removed Verify that the sensitive response, resource, service or configuration is no longer externally accessible.
03
Verify configuration state Where authorized, confirm that the underlying security configuration has actually changed.
04
Check equivalent interfaces Verify that the same misconfiguration does not remain on alternate hosts, ports, endpoints or deployment environments.
05
Verify legitimate functionality Confirm that required application functionality continues to work after hardening.
06
Verify persistence Confirm that the secure configuration survives restart, redeployment or the organization's normal infrastructure lifecycle.
PASS

The identified misconfiguration is removed and required functionality remains operational.

FAIL

The original exposure or an equivalent insecure configuration remains present.

NOT TESTED

The configuration or resulting exposure could not be adequately verified.

17 / EVIDENCE

Evidence requirements

Affected host, endpoint or service
Configuration component responsible for the exposure
Baseline behavior
Controlled reproduction
Security impact
Configuration remediation evidence
Post-remediation test
Final PASS / FAIL determination
Redact sensitive configuration

Do not publish passwords, API keys, private keys, session tokens, internal hostnames or other secrets in assessment evidence. Retain only the minimum information required to demonstrate the finding.

18 / CLASSIFICATION

Classification

WebOTG procedure WebOTG-A05-003
OWASP category A02:2025 — Security Misconfiguration
Procedure type Application, server, platform and deployment configuration assessment
Assessment result PASS / FAIL / NOT TESTED
Finding severity Determine according to exposure, affected privileges, information disclosed, exploitability and business impact.
WebOTG classification notice

WebOTG-A05-003 is a WebOTG-defined procedure identifier. It is not an OWASP-defined test identifier. The OWASP category reference should be maintained separately from the WebOTG procedure taxonomy.

19 / REFERENCES

References

Source Relevance
OWASP Top 10 Security Misconfiguration category and associated application-security guidance.
OWASP Web Security Testing Guide Web application testing methodology and configuration-testing guidance.
OWASP Secure Headers Project Reference material for browser-facing HTTP security headers.
Vendor hardening documentation Technology-specific secure configuration requirements.
CWE Common weakness classifications related to insecure configuration and exposure.

WebOTG should maintain source versions, publication dates, review dates and authoritative references through its content-management system. Procedures should be reviewed whenever the referenced security framework or underlying technology changes.