Common Web Application Security Risks

Common security weaknesses often begin with ordinary design decisions about who can act, how the application handles input, and what it records. Use these categories to choose where to review first and what evidence would show that a control works.

Review one sensitive workflowStart where a mistake would affect an important record or business decision.
  1. Pick the action

    Choose a workflow such as approving a customer account change.

  2. Map boundaries

    Trace the actor, input, data stores, dependencies, and outputs.

  3. Assign controls

    Name an owner for each permission, validation, configuration, or logging rule.

  4. Collect evidence

    Verify expected and denied cases with synthetic records in an approved environment.

Broken access control

A single role may have different permissions for files, records, and administrative actions. Check the caller's permission against the specific record or action on the server. For example, a support agent's role may permit case review only within their own organization. Verify that an approved test account can retrieve its assigned test case and receives a denial for records outside its scope.

Unsafe handling of untrusted input

A web application may pass user input to a database, template, or file processor. Each destination needs controls matched to how it interprets data. Use parameterized queries for SQL value inputs and context-appropriate output encoding when displaying untrusted text. For file processing, enforce the accepted formats and resource limits on the server. Include synthetic inputs representing both successful and rejected cases in an approved environment.

Authentication and session mistakes

Sign-in, password recovery, factor enrollment, and session renewal deserve separate checks. Trace each path and record which component verifies the user and which component keeps the session active. Test expiry and sign-out with a synthetic account. Also check when existing sessions lose access after an account is disabled or a privileged role is removed.

Exposed secrets and insecure configuration

Check for forgotten debug settings, secrets in configuration or logs, and service accounts with broader access than their work requires. Store credentials through an approved secrets mechanism and assign a named owner for rotation and revocation. If a credential is confirmed exposed, follow the incident process for replacing it, revoking the former credential, and checking the affected systems.

Dependency and supply-chain concerns

Review the components and tools used to build, deploy, and run the application. Keep an inventory and track relevant advisories. For an affected dependency, determine which version is deployed, whether the relevant behavior is used, and which update can be tested. Verify the deployed dependency or build output after applying the change.

Where different controls belongEach boundary calls for its own evidence of correct behavior.
  • Access

    Check the requested action and record against the caller's permissions.

  • Input

    Choose controls for the destination, such as SQL parameters or output encoding.

  • Dependencies

    Check deployed versions and verify approved component updates.

  • Diagnostics

    Record useful event details and keep auth material out of routine logs.

Logging, errors, and sensitive information

Decide which events help someone investigate a security problem and which fields they need. Keep credentials, raw session identifiers, and unnecessary personal data out of routine logs. Give outward-facing errors a safe explanation and use a non-sensitive reference to find internal evidence. In a test environment, confirm a useful event reaches the intended destination without containing fixture secret values.

Business-logic and workflow weaknesses

A feature may accept each step of a workflow yet mishandle how those steps fit together. For a sensitive process, write down the required order, who can authorize each transition, and what should happen when a request is repeated. Verify the final state with synthetic records, including that a repeat operation has the intended result.

Where to start

Choose one important workflow, such as approving changes to a customer account. Record the potential impact, control owner, and one representative verification result. The OWASP Top 10 helps teams recognize broad risk categories. Use OWASP ASVS to choose specific requirements for the workflow and record the version alongside each selected requirement.

Prepare for a secure code review ยท Read what an assessment includes

References