owasp-guidelines

Last modified by Kyle Hill on 2025/08/25 11:16

Vulnerability Fortification

Anti-CSRF Tokens

SeverityMedium
DescriptionA cross-site request forgery is an attack that involves forcing a victim to send an HTTP request to a target destination without their knowledge or intent in order to perform an action as the victim
Mitigation

Generate a unique nonce or token when rendering the form and store it securely on the server. When the form is submitted, validate that the token included in the request matches the one previously generated and stored

Implemented?

CommentsPrevious findings have suggested that the CSRF token was not present on the login form. This has since been remedied. Pull Request 

Vulnerable Libraries

SeverityMedium
DescriptionThe identified libraries appears to be vulnerable
MitigationUpgrade to the latest version of the affected library

Implemented?

CommentsThe library which was flagged was jQuery 3.0.0. This has since been remedied

Anti-clickjacking Header

SeverityMedium
DescriptionClickjacking is the act of embedding legitimate content inside a hidden or transparent frame in order to trick a user into clicking on something different from what they perceive
MitigationSet Content-Security-Policy with 'frame-ancestors' directive or X-Frame-Options

Implemented?

CommentsRequired headers have been set in the web.config file of the project

Content-Security-Policy (CSP) Header

SeverityMedium
DescriptionContent Security Policy (CSP) is an added layer of security that helps to detect and mitigate certain types of attacks, including Cross Site Scripting (XSS) and data injection attacks but specifying a list of sources from which to load application files
MitigationDeclare approved sources of content that browsers should be allowed to load on that page using the Content-Security-Policy header

Implemented?

CommentsRequired header has been set in the web.config file of the project

Cross-Domain Java Script Source File Inclusion

SeverityLow
DescriptionThe page includes one or more script files from a third-party domain
MitigationEnsure JavaScript source files are loaded from only trusted sources, and the sources can't be controlled by end users of the application

Implemented?

CommentsStrict-Content-Policy has been updated in the web.config of the project, to include third-party scripts such as Google reCAPTCHA which was previously flag in security audits. 

X-Content-Type-Options Header

SeverityLow
DescriptionThis header is a security control that tells browsers not to determine the MIME type from a response and instead to strictly follow the declared Content-Type
MitigationInclude the header X-Content-Type-Options and set the value to NOSNIFF

Implemented?

CommentsRequired header has been set in the web.config file of the project

Cookie Without Secure Flag

SeverityLow
DescriptionA cookie has been set without the secure flag, which means that the cookie can be accessed via unencrypted connections
MitigationWhenever a cookie contains sensitive information or is a session token, then it should always be passed using an encrypted channel. Ensure that the secure flag is set for cookies containing such sensitive information

Implemented?

CommentsConfiguration updated to ensure all cookies created by the site are set to secure

Environment Information Leak

SeverityLow
DescriptionThe web/application server is leaking information via one or more HTTP response headers
MitigationEnsure that your web server, application server, load balancer, etc. is configured to suppress headers

Implemented?

CommentsRequired header(s) have been set to be removed in the web.config file of the project (X-Powered-By, Server)

Unsupported Application Versions

SeverityLow
DescriptionThis website uses ASP.NET version 1.0 or 1.1
MitigationEnsure the engaged framework is still supported by Microsoft or do an upgrade

Implemented?

CommentsTarget Framework is currently set to 4.7.2. Version 4.7.2 and later ensures that newly created cookies have 'Lax' as the default value for the 'SameSite' property

Big Redirect Detected

SeverityLow
DescriptionThe server has responded with a redirect that seems to provide a large response. This may indicate that although the server sent a redirect it also responded with body content
MitigationEnsure that no sensitive information is leaked via redirect responses. Redirect responses should have almost no content

Implemented?

Comments 

Strict-Transport-Security Header

SeverityLow
DescriptionHTTP Strict Transport Security (HSTS) is a web security policy mechanism whereby a web server declares that complying user agents (such as a web browser) are to interact with it using only secure HTTPS connections
MitigationEnsure that your web server, application server, load balancer, etc. is configured to enforce Strict-Transport-Security

Implemented?

CommentsRequired header has been set in the web.config file of the project

Cookie Without Same Site Attribute

SeverityLow
DescriptionA cookie has been set without the SameSite attribute, which means that the cookie can be sent as a result of a 'cross-site' request. The SameSite attribute is an effective counter measure to cross-site request forgery, cross-site script inclusion, and timing attacks
MitigationEnsure that the SameSite attribute is set to either 'lax' or ideally 'strict' for all cookies

Implemented?

CommentsAll cookies created by the application are set using either lax or strict
Tags: