Skip to main content
  1. Home
  2. IT Services
  3. Security Services
  4. OWASP & Web Application Security

OWASP & Web Application Security

Common web application risks, where they occur in a request, and the practical controls that reduce them.

What Is OWASP?

The Open Worldwide Application Security Project (OWASP) is a non-profit foundation that publishes free, community-driven guidance on software security. Its best-known project, the OWASP Top 10, is an awareness document that ranks the most critical security risks to web applications. It is updated periodically, so we always refer to the current edition on the official site.

Illustration of a web request flowing from the user's browser across the internet, through a web application firewall, to the web application and its backend database, with XSS, injection, CSRF, and misconfiguration shown as threats targeting the traffic.
Common web application risks such as XSS, injection, CSRF, and security misconfiguration target requests on their way to the application. A WAF adds a filtering layer, but the application and backend must still apply their own controls.

How we use it: The Top 10 is a baseline for test coverage, not a complete checklist. We also test business logic and access rules specific to your application.

Where Controls Protect a Request

A web request passes through several layers. Each layer needs its own controls; no single layer can protect the others.

  1. Browser Renders pages and sends user input.
    • Content Security Policy
    • Secure, HttpOnly, SameSite cookies
    • HTTPS only (HSTS)
  2. Web Application Handles requests, sessions, and business logic.
    • Input validation & output encoding
    • CSRF protection
    • Authorization checks
    • Generic error responses
  3. Backend / Database Stores and returns data.
    • Parameterized queries
    • Least-privilege DB accounts
    • Encryption of sensitive data
Web application request flow. A request travels from the browser to the web application and then to the backend or database. Green labels show the security controls applied at each layer.

Common Risks and Practical Mitigations

Short explanations of the risks we test most often, with the controls that address them.

OWASP Top 10

A ranked list of critical web risk categories such as broken access control, injection, and security misconfiguration.

MitigationMap tests to each category, then extend coverage to application-specific logic.

Cross-Site Scripting (XSS)

Untrusted input is rendered as script in another user's browser, which can expose sessions or alter page content.

MitigationContext-aware output encoding, framework auto-escaping, avoiding unsafe HTML sinks, and a restrictive CSP.

SQL and Other Injection

Input is interpreted as part of a query or command — SQL, NoSQL, OS commands, LDAP, or template expressions.

MitigationParameterized queries or safe ORM methods, no string-built commands, allow-list validation, and least-privilege database accounts.

Cross-Site Request Forgery (CSRF)

A malicious site causes a logged-in user's browser to send an unwanted state-changing request.

MitigationAnti-CSRF tokens or framework protection, SameSite cookies, and never changing state on GET requests.

Security Misconfiguration

Default credentials, debug mode, verbose errors, open storage, or unnecessary features left enabled.

MitigationHardened configuration baselines per environment, disabled debug output in production, and regular configuration reviews.

Security Headers & CSP

HTTP response headers instruct the browser to apply extra protections. Missing headers remove a useful layer of defense.

MitigationSet the headers in the table below; start CSP in report-only mode, then enforce.

Input Validation & Output Encoding

Validation limits what the application accepts; encoding makes output safe for the context it is placed in. They are complementary.

MitigationServer-side allow-list validation of type, length, and format; encode for HTML, attribute, JavaScript, or URL context.

Secure Sessions & Error Responses

Weak session handling enables hijacking; detailed errors reveal internals such as table names or library versions.

MitigationRegenerate session IDs at login, enforce timeouts, invalidate on logout, and return generic error messages while logging details server-side.

Recommended Security Headers

Common response headers we check during a review. Exact values depend on the application.

Security headers and their purpose
HeaderPurpose
Content-Security-PolicyRestricts where scripts, styles, and other resources can load from; reduces XSS impact. The frame-ancestors directive controls framing.
Strict-Transport-SecurityTells browsers to use HTTPS only for the domain.
X-Content-Type-Options: nosniffStops browsers from guessing content types.
X-Frame-OptionsLegacy clickjacking protection for older browsers; use alongside CSP frame-ancestors.
Referrer-PolicyLimits how much URL information is sent to other sites.
Permissions-PolicyDisables browser features the application does not need, such as camera or geolocation.

Practical lesson: A login form that returns "invalid password" for one account and "user not found" for another lets anyone check which accounts exist. Use one generic message for both cases.

Practical Experience

FEGO's development team has worked through findings from third-party VAPT assessments of fintech mobile apps, web portals, and APIs: analyzing each report, planning fixes, and implementing them. The examples below are generalized and describe the kinds of issues we have worked on. They are not a statement about the current security of any application.

Server-side input validation

Moving validation that relied on the client to the server, so every input is checked for type, length, and format. This has been implemented in response to reported findings.

File upload validation

Checking uploads on the server for their actual file type, content, and size, not just the filename extension, because a renamed file can disguise its real type. This has been implemented in response to a reported finding.

Sensitive data in responses

Reviewing responses so they return only the fields a screen needs, and masking personal information that the client does not need to see.

Error handling and information disclosure

Replacing detailed error messages and server version details with generic responses, while keeping full details in server logs.

Security headers

Adding response headers such as Content-Security-Policy and X-Content-Type-Options, configured for each application.

Remediation and Validation

Remediation approach

  • Review each finding and reproduce it safely in a test environment
  • Prioritize by severity and business impact
  • Agree the fix using standard references such as CWE and OWASP
  • Plan the frontend, backend, and testing work for each fix
  • Fix the root cause on the server, not only in the client

Validation and reporting

  • Verify each fix in internal testing before release
  • Track the status of every finding, from open to fixed
  • Flag fixes that need a business decision or further checks
  • Support retesting by the assessor or client; a finding is closed only when retesting confirms the fix
  • Document what changed and any remaining risk

Official References

For further learning, refer to the official OWASP documentation.

Strengthen Your Application Security

Let's discuss your security requirements and identify the right approach for your applications and APIs.

Contact FEGO