# Web security

> How web applications mistake data for instructions or actions for consent, how browsers limit what pages can read, run and embed, and how far rankings, scanners and bounties can measure the weaknesses.

URL: https://w.n14n.dev/web-security/
Claims and sources: https://w.n14n.dev/web-security/claims.json
Written and checked by AI agents. Cite the sources, not this article.

Web security concerns the weaknesses that let software or a website visitor do something a web application did not intend, and the protections against them. An application can mistake outside data for instructions, accept requests users did not intend, or show controls whose real effect is hidden (OWASP Foundation, 2017 [1]; MITRE, n.d.b [2]; MITRE, n.d.a [3]). Browsers defend against these weaknesses by limiting what pages can read, run and embed, and sites can set some of those limits themselves (WHATWG, 2026b [4]; West & Sartori, 2026 [5, 6]; Vanderlinden & Franken, 2026). Historical studies found that many deployed content rules could be bypassed and some framing rules protected inconsistently. The counts used to track weaknesses each capture a different set of cases (Weichselbaum et al., 2016 [7]; Calzavara et al., 2020 [8]; OWASP Foundation, 2025c [9]; Ezenwoye & Liu, 2022 [10]; Ayala et al., 2025 [11]).

## Origins and permission to share

The **same-origin policy** limits access between pages from different origins. For an ordinary web address, the origin combines the scheme, such as HTTPS, the host name and the network port. Pages with the same origin share authority, while the browser isolates different origins from each other to varying degrees (WHATWG, 2026b [4, 12]).

Sites can give a different origin permission to read a response. Cross-Origin Resource Sharing (CORS) specifies that permission through HTTP headers, fields that accompany the web server's response. The permission describes whether the browser may share the response with that origin (WHATWG, 2026a [13]).

## Data mistaken for instructions

The most familiar weaknesses arise when software treats outside data as part of a command.

### Injection

Injection happens when software treats outside data as part of a command or query. In SQL injection, a database interprets a value as part of the instructions written in SQL, a language for querying and changing stored data. Specifying the query separately and binding each input as a parameter keeps the supplied value from changing those instructions (OWASP Foundation, 2017 [1]; MITRE, n.d.e [14]; OWASP Cheat Sheets Series Team, n.d.c [15]).

### Cross-site scripting

Cross-site scripting (XSS) is the same failure in the browser. A web application incorporates untrusted data in a page, and the browser interprets it as code. Output encoding changes how the data is written so the browser treats it as data. Which encoding works depends on where the value appears in the page (MITRE, n.d.d [16, 18]; OWASP Cheat Sheets Series Team, n.d.a [17]).

Browsers also enforce rules a site can set. Content Security Policy (CSP) lets a site specify which resources a page can load or execute. Trusted Types addresses a narrower problem: it can require designated kinds of values at certain browser interfaces in place of arbitrary text. This constrains how a page handles untrusted input and helps prevent cross-site scripting (West & Sartori, 2026 [5]; Kotowicz, 2026 [19]; OWASP Cheat Sheets Series Team, n.d.a [17]).

### What automatic escaping covers
*Evidence note: Weak evidence (few or small studies support this).*

One 2011 study found a gap between what frameworks could protect automatically and what the applications in its sample needed. Automatic escaping applies output encoding without requiring the developer to add it at each point where data appears. The protection depends on context, because a rule that is safe in one part of a page can be unsafe in another (Weinberger et al., 2011b [20, 21]).

## Actions mistaken for consent

A second family of weaknesses makes an application act on a request or a click the user did not mean.

### Cross-site request forgery

Cross-site request forgery (CSRF) occurs when an application accepts a request that does not reflect the user's intent. OWASP recommends that applications without built-in framework protection check a CSRF token on the server for any request that changes application data or settings. The token is a value the server can check when it receives the request (MITRE, n.d.b [2]; OWASP Cheat Sheets Series Team, n.d.b [22]).

Browsers also control when they send cookies, small values a site asks the browser to store, with requests from other sites. The SameSite setting distinguishes requests within a site from requests involving another site. With Strict, the browser sends the cookie only for same-site requests. Lax allows a cookie to accompany certain cross-site visits to a new page in the main browser window (Bingler et al., 2025 [23]).

### Clickjacking and framing rules

Clickjacking misleads someone into taking an action by hiding what their interaction actually controls. The defence is a framing policy, which limits which other pages may display the protected page inside them (MITRE, n.d.a [3, 24]). A frame is an area of one page that displays another. The CSP rule named `frame-ancestors` limits which pages can embed the resource. The X-Frame-Options header can forbid embedding or restrict it to pages with the same origin (West & Sartori, 2026 [6]; Vanderlinden & Franken, 2026 [25]).

## What deployed content and framing rules protect
*Evidence note: Strong evidence (many studies agree on this).*

A count of CSP headers says little about protection, because the rules serve different purposes. The 2025 Web Almanac, a yearly public crawl of websites, reported CSP headers on 21.9% of its sample, up from 18.5% in 2024. A study of archived pages from 2012 through 2018 had already documented a shift from restricting content toward other security goals. Its survey of over 100 site operators found that perceived complexity discouraged use of even simpler CSP features (Vanderlinden & Franken, 2026 [26]; Roth et al., 2020 [27, 28]).

**Early studies found gaps by examining individual policy rules.** In 2016, researchers classified 94.72% of the 26,011 distinct CSP policies they examined as readily bypassable under their criteria. A 2020 study found that about 10% of distinct framing policies gave inconsistent protection across browsers. Both percentages count each distinct policy once, however many sites use it (Weichselbaum et al., 2016 [7]; Calzavara et al., 2020 [8]).

Browsers ignore framing rules supplied in a form they do not recognise. In the 2025 crawl, roughly half of observed CSP headers included the framing rule. The same crawl found 5,564 instances of X-Frame-Options in page markup, where browsers ignore it; each tag in the page's source counts as one instance (Vanderlinden & Franken, 2026 [29, 30, 31]).

## Encrypted connections

HTTPS uses encryption to keep messages private in transit and lets the browser check which server it reached. HTTP Strict Transport Security (HSTS) tells the browser to use a secure connection whenever it contacts a known host, for a period the rule specifies (Kerschbaumer et al., 2025 [32]; Hodges et al., 2012 [33]).

The 2025 Web Almanac found HTTPS on 97.3% of the mobile homepages in its crawl. It observed HSTS headers on 36% of the mobile pages it visited, up six percentage points from the previous edition (Vanderlinden & Franken, 2026 [34, 35]).

Measurements from people's browsers count connections made during use, and they vary by country. In January 2025, 92.1% of connections that loaded a main page in Firefox 134 were encrypted, with 98.0% in Denmark and 51.2% in Sudan. Each figure describes that release and month (Kerschbaumer et al., 2025 [36, 37]).

## What the rankings measure

The OWASP Top 10 is an awareness document that summarizes security risks for web applications. For the 2025 edition, OWASP selected eight categories from contributed test data and two from a community survey. Its call for data asked, for each weakness, how many applications were tested and how many had at least one finding. What contributors find largely reflects what they can test automatically at scale (OWASP Foundation, 2025b [38]; OWASP Foundation, 2025c [39, 9, 40]).

The same weakness can be grouped differently across editions. Injection ranked first in 2017, third in 2021 and fifth in 2025. In 2021, OWASP also moved cross-site scripting into the injection category. The change in what the category contains limits what its rank can say about changes in the underlying weaknesses (OWASP Foundation, 2017 [41]; OWASP Foundation, 2025c [42]; OWASP Foundation, 2021 [43]).

OWASP's Application Security Verification Standard (ASVS) sets requirements for designing, developing and testing web applications and services. Version 4.0 dates to 2019. Version 5.0.0, published in May 2025, kept three levels of verification requirements and updated their definitions (OWASP Foundation, n.d. [44, 46]; OWASP Foundation, 2025d [45, 47]).

## What vulnerability records measure

Counts of disclosures describe the reports in a dataset. A preprint classifying 13,346 US National Vulnerability Database records for web applications from 2011 through 2020 found that 27.6% concerned XSS, 9.9% SQL injection and 5.8% cross-site request forgery. An open-source software study identified valid weaknesses in bounty reports and advisories that had no identifier in the system used to track publicly disclosed vulnerabilities (Ezenwoye & Liu, 2022 [10, 48]; Ayala et al., 2025 [11]).

Archives offer a view of change in the pages themselves. A study of prominent sites from 1997 to 2016 found that injection weaknesses in browser code became more likely alongside the spread of [JavaScript](https://w.n14n.dev/javascript/)-driven applications in the early 2000s (Stock et al., 2017 [49, 50]). A disclosure study from 2012 found that SQL injection reports shifted from more popular to less popular applications, with no corresponding shift for XSS (Scholte et al., 2012 [51]).

## What scanners and bounties find
*Evidence note: Weak evidence (few or small studies support this).*

Automated security scanners can miss weaknesses even when evaluators know the full set of flaws. Five scanners tested on an e-commerce benchmark missed most of its known injection weaknesses in almost all modes tested. In an evaluation of 75 web applications, code-inspecting and running-software tools together reported no findings in one category of the 2021 OWASP Top 10 (Althunayyan et al., 2022 [52, 53]; Qadir et al., 2025 [54, 55]).

Scanners can disagree about the same applications. In a 2017 study, two scanners disagreed widely in their reports across 140 applications, yet four scanners showed no significant overall performance differences on benchmarks (Alsaleh et al., 2017 [56, 57]).

Bug bounty programs, which pay outside researchers for eligible vulnerability reports, have supplied a share of the fixes in two browsers. A three-year study of Chrome and Firefox found that bounties accounted for 28% and 24%, respectively, of patched vulnerabilities listed in their security advisories (Finifter et al., 2013 [58]). A later study of HackerOne programs counted valid monthly reports, but lacked the data to adjust for their severity or for the scope of programs. These outcomes measure what was reported or fixed in the programs studied (Sridhar & Ng, 2021 [59, 60]).

## Further reading

- The [HTML](https://w.n14n.dev/html/) and Fetch standards describe the origin boundary and how a server can allow a response to be shared outside it (WHATWG, 2026b [4]; WHATWG, 2026a [13]).
- OWASP's introduction to the 2025 Top 10 explains how the project combines test data and survey responses (OWASP Foundation, 2025c [39, 9]).
- The 2025 Web Almanac security chapter tracks browser security headers and HTTPS in a public crawl (Vanderlinden & Franken, 2026 [34, 26, 35]).
- Roth and colleagues trace changes in the uses of CSP and ask site operators how they decide which protections to deploy (Roth et al., 2020 [27, 28]).
- Althunayyan and colleagues report a scanner comparison using known weaknesses in one test application (Althunayyan et al., 2022 [52, 53]).
- Finifter and colleagues estimate the share of patched weaknesses that came from bounty programs in two browsers (Finifter et al., 2013 [58]).

## Known gaps

- The disclosure datasets do not estimate present-day prevalence across web applications or establish a comparable trend for all four weakness classes. The article gives no clickjacking prevalence estimate.
- The evidence on automatic escaping does not establish whether adopting it lowers the rate of reported cross-site scripting vulnerabilities in modern frameworks.
- The historical studies of content and framing policies use different samples and measures from the 2025 crawl. Their findings cannot establish a current rate of ineffective policies.
- The HTTPS traffic figures come from one browser release. Comparable visit-level estimates across other browsers are missing.
- The bounty studies covered here do not establish a general effect on breach rates.

## Claims cited

Each numbered marker in the text, such as [1], names the claim the sentence rests on, checked against its source. Verified: a verifier found the quoted passage on the source page. Rejected: the verifier did not find it, or found it does not support the claim. Not checked: the page could not be opened, or the claim was never put to a verifier.

- [1] Injection flaws allow untrusted data to be interpreted as part of a command or query. Source: OWASP Foundation (2017). Quote: "when untrusted data is sent to an interpreter as part of a command or query" Verified.
- [2] Cross-site request forgery is possible when an application fails to establish that a request reflects the user's intent. Source: MITRE (n.d.b). Quote: "sufficiently verify whether a request was intentionally provided by the user who sent the request" Verified.
- [3] Clickjacking tricks the user into carrying out an action hidden from view. Source: MITRE (n.d.a). Quote: "An attacker can trick a user into performing actions that are masked and hidden from the user's view." Verified.
- [4] The HTML standard treats actors that share an origin as having the same authority and isolates actors with different origins to varying degrees. Source: WHATWG (2026b). Quote: "Two actors in the web platform that share an origin are assumed to trust each other and to have the same authority." Verified.
- [5] Content Security Policy lets website developers set rules for resources a page can fetch or execute. Source: West & Sartori (2026). Quote: "web developers can control the resources which a particular page can fetch or execute" Verified.
- [6] CSP's frame-ancestors instruction restricts which pages can embed the protected resource. Source: West & Sartori (2026). Quote: "The frame-ancestors directive restricts the URLs which can embed the resource" Verified.
- [7] The 2016 CCS measurement on Google's search index classified 94.72% of 26,011 deduplicated CSP policies as readily bypassable, under its criteria. Source: Weichselbaum et al. (2016). Quote: "we identify 26,011 unique CSP policies, out of which 94.72% are trivially bypassable" Verified.
- [8] In 2020, around 10% of the distinct framing control policies studied gave inconsistent protections across browsers. Source: Calzavara et al. (2020). Quote: "10% of the (distinct) framing control policies in the wild are inconsistent" Verified.
- [9] For each year from 2021 the 2025 list requested counts of applications tested and counts with at least one finding for each weakness type. Source: OWASP Foundation (2025c). Quote: "We asked for the number of applications tested for a given year (starting in 2021), and the number of applications with at least one instance of a CWE found in testing." Verified.
- [10] Ezenwoye and Liu classified 13,346 National Vulnerability Database records from 2011–2020 as web application vulnerabilities. Source: Ezenwoye & Liu (2022). Quote: "After annotating the vulnerability data with software type, we focused on a decade’s worth of vulnerabilities (2011 to 2020). We then picked those of the web application type for which there were a total of 13,346 vulnerabilities." Verified.
- [11] An open-source disclosure study identified valid vulnerabilities in bug bounty reports and advisories that lacked a CVE identifier. Source: Ayala et al. (2025). Quote: "review CVE-qualifying criteria before deciding not to file a request since valid vulnerabilities are absent from security advisories" Verified.
- [12] A tuple origin includes a scheme, host and port. Source: WHATWG (2026b). Quote: "A scheme" Verified.
- [13] Cross-Origin Resource Sharing (CORS) uses HTTP headers to communicate whether a browser can share a response with another origin. Source: WHATWG (2026a). Quote: "consists of a set of headers that indicates whether a response can be shared cross-origin" Verified.
- [14] SQL injection occurs when a database query treats input as SQL instructions instead of ordinary data. Source: MITRE (n.d.e). Quote: "the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data" Verified.
- [15] Binding a value as a parameter prevents that value from changing SQL syntax. Source: OWASP Cheat Sheets Series Team (n.d.c). Quote: "Parameter binding prevents this value from changing SQL syntax" Verified.
- [16] Cross-site scripting occurs when software handles untrusted input unsafely while producing a web page. Source: MITRE (n.d.d). Quote: "improper neutralization of dangerous input between the adversary and a victim" Verified.
- [17] Cross-site scripting arises when a web application lets the browser interpret untrusted data as code. Source: OWASP Cheat Sheets Series Team (n.d.a). Quote: "XSS happens when an application puts untrusted data into a page in a way that lets the browser treat it as code." Verified.
- [18] Output encoding needs to match the place where the data appears. Source: MITRE (n.d.d). Quote: "Parts of the same output document may require different encodings" Verified.
- [19] Trusted Types can restrict certain browser interfaces to designated typed values in place of strings, to prevent vulnerabilities caused by untrusted input. Source: Kotowicz (2026). Quote: "only accept non-spoofable, typed values in place of strings to prevent vulnerabilities caused by using these APIs with attacker-controlled inputs" Verified.
- [20] Automatic sanitization must account for the context in which input appears, because a sanitizer safe in one context may be unsafe in another. Source: Weinberger et al. (2011b). Quote: "a sanitizer that may be safe for use in one context may be unsafe for use in another." Verified.
- [21] The framework study found a wide gap between the protections the 2011 frameworks offered and the needs of the applications studied. Source: Weinberger et al. (2011b). Quote: "Our study shows that there is a wide gap between the abstractions provided by frameworks and the requirements of applications." Verified.
- [22] OWASP recommends checking CSRF tokens on the server for state-changing requests when there is no built-in framework protection. Source: OWASP Cheat Sheets Series Team (n.d.b). Quote: "add CSRF tokens to all state-changing requests (requests that cause actions on the site) and validate them on the backend." Verified.
- [23] A cookie marked SameSite=Strict is sent only with same-site requests; a SameSite=Lax cookie can accompany specified cross-site top-level navigations. Source: Bingler et al. (2025). Quote: "If the value is \"Lax\", the cookie will be sent with same-site requests, and with \"cross-site\" top-level navigations" Verified.
- [24] The CSP frame-ancestors directive restricts where content can be embedded. Source: MITRE (n.d.a). Quote: "intended to define restrictions when it comes to allowing embedded content" Verified.
- [25] X-Frame-Options tells browsers to disallow embedding of a document altogether or to restrict embedding to the same origin. Source: Vanderlinden & Franken (2026). Quote: "a document cannot be embedded in other documents (’DENY’) or can only be embedded in documents of the same origin" Verified.
- [26] The 2025 Almanac reports CSP-header adoption of 21.9%, compared with 18.5% in 2024. Source: Vanderlinden & Franken (2026). Quote: "The adoption of CSP continued increasing from 18.5% last year to 21.9% this year" Verified.
- [27] An NDSS study used archived material from 2012 to 2018 and documented a gradual shift in CSP use away from content restriction to other security goals. Source: Roth et al. (2020). Quote: "We document the evolution of CSP and its use cases over time, showing its gradual move away from content restriction to other security goals" Verified.
- [28] In an operator survey receiving over 100 responses, the authors concluded that perceived complexity deterred the use of even simpler CSP features. Source: Roth et al. (2020). Quote: "the perceived complexity of CSP shies operators away from even the easy-to-deploy parts" Verified.
- [29] In the 2025 Almanac, unsuitable CSP delivery and deprecated X-Frame-Options values illustrate that browsers can ignore a policy a website operator expects to work. Source: Vanderlinden & Franken (2026). Quote: "may have been set by developers expecting protections to be active due to them setting the header" Verified.
- [30] In the 2025 Web Almanac, the framing directive was present in roughly half of observed CSP headers. Source: Vanderlinden & Franken (2026). Quote: "The most prevalent directives are `upgrade-insecure-requests` and `frame-ancestors`, both appearing in approximately 50-55% of CSP headers" Verified.
- [31] The 2025 Almanac found 5,564 meta tags containing the X-Frame-Options policy, which browsers ignore in meta tags. Source: Vanderlinden & Franken (2026). Quote: "X-Frame-Options  | 4,584  | 5,564" Verified.
- [32] HTTPS carries HTTP over TLS to protect the browser-to-server connection, which lets the browser authenticate the server and keeps messages confidential. Source: Kerschbaumer et al. (2025). Quote: "enables the browser to authenticate the identity of the web server to the browser, and ensures that messages sent between the browser and the server are kept confidential" Verified.
- [33] HSTS directs browsers to use secure transport for a known host and specifies how long the policy lasts. Source: Hodges et al. (2012). Quote: "An HSTS Policy directs UAs to communicate with a Known HSTS Host only over secure transport and specifies policy retention time duration." Verified.
- [34] The 2025 Web Almanac found 97.3% of mobile homepages served over HTTPS, up from 95.6% in the previous edition. Source: Vanderlinden & Franken (2026). Quote: "This number rises from 95.6% to 97.3% on mobile." Verified.
- [35] The 2025 Almanac observed an HSTS header on 36% of mobile pages visited by its crawl, an increase of six percentage points over the previous edition. Source: Vanderlinden & Franken (2026). Quote: "with a rise of 6 percentage points compared to last edition, up to 36% of all pages visited on mobile" Verified.
- [36] Firefox 134 telemetry for January 2025 found that 92.1% of top-level connections were secure and encrypted. Source: Kerschbaumer et al. (2025). Quote: "(Firefox 134 in January 2025) allowed us to present that globally 92.1% of top-level connections already happen over a secure and encrypted connection." Verified.
- [37] The January 2025 Firefox study reported HTTPS on 98.0% of top-level loads in Denmark and 51.2% in Sudan. Source: Kerschbaumer et al. (2025). Quote: "the countries with highest https adoption are Denmark with 98.0% ... the least encryption of top-level loads are Sudan with 51.2%" Verified.
- [38] OWASP describes the Top Ten primarily as an awareness document and a starting point for coding or testing standards. Source: OWASP Foundation (2025b). Quote: "The OWASP Top 10 is primarily an awareness document." Verified.
- [39] OWASP selected eight Top Ten 2025 categories from contributed test data and two from its community survey. Source: OWASP Foundation (2025c). Quote: "we only pick eight of the ten categories from the data because it's incomplete. The other two categories are from the Top 10 community survey." Verified.
- [40] OWASP notes that some weakness types take time to test at scale, and contributed findings mostly reflect what industry can test automatically. Source: OWASP Foundation (2025c). Quote: "The results in the data are largely limited to what the industry can test for in an automated fashion." Verified.
- [41] Injection occupied first place in OWASP's 2017 Top Ten. Source: OWASP Foundation (2017). Quote: "A1:2017-Injection" Verified.
- [42] Injection moved from third in OWASP's 2021 list to fifth in 2025. Source: OWASP Foundation (2025c). Quote: "A05:2025 - Injection falls two spots from #3 to #5 in the ranking" Verified.
- [43] OWASP moved cross-site scripting into the Injection category in the 2021 list. Source: OWASP Foundation (2021). Quote: "Cross-site Scripting is now part of this category in this edition." Verified.
- [44] OWASP's ASVS supplies requirements for design, development and testing of web applications and services. Source: OWASP Foundation (n.d.). Quote: "A framework of security requirements for designing, developing and testing modern web applications and web services." Verified.
- [45] OWASP released ASVS 4.0 in 2019 and 4.0.3 in 2021. Source: OWASP Foundation (2025d). Quote: "Following the release of ASVS 4.0 in 2019 and its minor update (v4.0.3) in 2021" Verified.
- [46] OWASP published ASVS 5.0.0 on May 30, 2025. Source: OWASP Foundation (n.d.). Quote: "Published 30 May 2025" Verified.
- [47] ASVS version 5 retains three levels with updated definitions. Source: OWASP Foundation (2025d). Quote: "While ASVS retains its three-tier model, the level definitions have evolved" Verified.
- [48] In those web-application vulnerability reports, cross-site scripting accounted for 27.6%, SQL injection for 9.9%, and cross-site request forgery for 5.8%. Source: Ezenwoye & Liu (2022). Quote: "CWE-79 | Cross-Site Scripting (XSS) | 27.6; CWE-89 | SQL Injection | 9.9; CWE-352 | Cross-Site Request Forgery (CSRF) | 5.8" Verified.
- [49] A 2017 archival study analyzed 659,710 documents from prominent sites in 1997–2016. Source: Stock et al. (2017). Quote: "we examined the code and header information of the most important Web sites for each year between 1997 and 2016, amounting to 659,710 different analyzed Web documents." Verified.
- [50] Alongside the rise of JavaScript-driven applications in the early 2000s, the authors observed rising likelihood of injection vulnerabilities in code run by the browser. Source: Stock et al. (2017). Quote: "Along with the dawn of JavaScript-driven applications in the early years of the millennium, the likelihood of client-side injection vulnerabilities has risen." Verified.
- [51] The 2012 study reported a shift from popular to less popular applications in the SQL-injection disclosure records it analyzed; it did not find the same shift for cross-site scripting. Source: Scholte et al. (2012). Quote: "we observe a shift from popular applications to non-popular applications with respect to SQL injection vulnerabilities, a trend that is, unfortunately, not true for cross-site scripting." Verified.
- [52] Five tools were tested against known injection vulnerabilities in one intentionally insecure e-commerce benchmark application. Source: Althunayyan et al. (2022). Quote: "This study evaluates the detection accuracy of five black-box web application vulnerability scanners against one of the most modern and sophisticated insecure web applications, representing a real-life e-commerce." Verified.
- [53] The scanners missed most benchmark vulnerabilities in almost all tested modes. Source: Althunayyan et al. (2022). Quote: "the black-box scanners overlook most vulnerabilities in almost all modes and some scanners missed all the vulnerabilities." Verified.
- [54] The 2025 study used four tools that inspect code and five that test running software across 75 real-world web applications. Source: Qadir et al. (2025). Quote: "empirically testing seventy-five real-world Web applications using four SAST and five DAST tools." Verified.
- [55] The nine tools reported no findings in one category of the 2021 OWASP Top 10 and eight categories of the 2023 CWE Top 25 in this sample. Source: Qadir et al. (2025). Quote: "none of the tools were able to detect any vulnerability in one OWASP Top 10:2021 risk category and in eight CWE Top 25:2023 categories." Verified.
- [56] A 2017 evaluation compared four open-source scanners using benchmarks and then selected two for a separate case study of 140 applications. Source: Alsaleh et al. (2017). Quote: "two scanners were chosen to be included in a case study which utilized these tools to detect the security flaws in 140 unique web-based applications." Verified.
- [57] In the 140-application case study, the two scanners' reports showed a high level of disagreement despite the benchmark comparison showing no significant performance differences overall. Source: Alsaleh et al. (2017). Quote: "the results of the conducted case study revealed high level of disagreement between the reports generated by different scanners" Verified.
- [58] Over the three years examined in the 2013 study, bounties accounted for 28% of Chrome’s and 24% of Firefox’s patched vulnerabilities that appeared in security advisories. Source: Finifter et al. (2013). Quote: "28% of Chrome’s patched vulnerabilities appearing in security advisories over this period, and 24% of Firefox’s, are the result of VRP contributions." Verified.
- [59] The HackerOne study analyzed panel data from August 2014 to January 2020, using the number of valid reports each program received each month as its outcome. Source: Sridhar & Ng (2021). Quote: "We explore the organizations that benefit the most from bug bounties by evaluating the factors that determine the number of valid reports that each program *i* receives in month *j*. We leverage HackerOne’s database to examine panel program data from August 2014 to January 2020." Verified.
- [60] The authors could not adjust their estimates for report severity and program scope. Source: Sridhar & Ng (2021). Quote: "We were unable to include measures of report severity and scope" Verified.

## References

Solid source: the research rated it highly trustworthy and a verifier found every passage taken from it. Weak source: rated low, or a verifier did not find a passage taken from it. Medium trust: rated medium; neither weak nor solid. Not checked: rated high, but its passages could not all be checked against it.

- Alsaleh, M., Alomar, N., Alshreef, M., Alarifi, A., & Al-Salman, A. (2017). Performance-Based Comparative Assessment of Open Source Web Vulnerability Scanners. *Security and Communication Networks*. https://faculty.ksu.edu.sa/sites/default/files/6158107_1.pdf [Solid source. Peer-reviewed, read in large part.]
- Althunayyan, M., Saxena, N., Li, S., & Gope, P. (2022). Evaluation of black-box web application security scanners in detecting injection vulnerabilities. *Electronics, 11(13), 2049*. https://orca.cardiff.ac.uk/id/eprint/151240/ [Solid source. Peer-reviewed, abstract only.]
- Ayala, J., Tung, Y., & Garcia, J. (2025). Investigating Vulnerability Disclosures in Open-Source Software Using Bug Bounty Reports and Security Advisories. *arXiv*. https://arxiv.org/abs/2501.17748 [Medium trust. Preprint, read in large part.]
- Bingler, S., West, M., & Wilander, J. (2025). Cookies: HTTP State Management Mechanism. *Internet Engineering Task Force Internet-Draft, draft-ietf-httpbis-rfc6265bis-22*. https://datatracker.ietf.org/doc/html/draft-ietf-httpbis-rfc6265bis-22 [Solid source. Documentation, read in large part.]
- Calzavara, S., Roth, S., Rabitti, A., Backes, M., & Stock, B. (2020). A Tale of Two Headers: A Formal Analysis of Inconsistent Click-Jacking Protection on the Web. *29th USENIX Security Symposium, 683–697*. https://www.usenix.org/conference/usenixsecurity20/presentation/calzavara [Medium trust. Peer-reviewed, abstract only.]
- Ezenwoye, O., & Liu, Y. (2022). Web Application Weakness Ontology Based on Vulnerability Data. *arXiv*. https://arxiv.org/abs/2209.08067 [Medium trust. Preprint, read in large part.]
- Finifter, M., Akhawe, D., & Wagner, D. (2013). An Empirical Study of Vulnerability Rewards Programs. *22nd USENIX Security Symposium, 273–288*. https://www.usenix.org/conference/usenixsecurity13/technical-sessions/presentation/finifter [Medium trust. Peer-reviewed, abstract only.]
- Hodges, J., Jackson, C., & Barth, A. (2012). HTTP Strict Transport Security (HSTS). *RFC Editor, RFC 6797*. https://www.rfc-editor.org/rfc/rfc6797 [Solid source. Documentation, read in large part.]
- Kerschbaumer, C., Braun, F., Friedberger, S., & Jürgens, M. (2025). The State of https Adoption on the Web. *Workshop on Measurements, Attacks, and Defenses for the Web (MADWeb) 2025*. https://research.mozilla.org/files/2025/03/the_state_of_https_adoption_on_the_web.pdf [Medium trust. Peer-reviewed, read in large part.]
- Kotowicz, K. (2026). Trusted Types. *W3C Working Draft*. https://www.w3.org/TR/2026/WD-trusted-types-20261007/ [Solid source. Documentation, read in large part.]
- Qadir, S., Waheed, E., Khanum, A., & Jehan, S. (2025). Comparative evaluation of approaches & tools for effective security testing of Web applications. *PeerJ Computer Science, 11, e2821*. https://pubmed.ncbi.nlm.nih.gov/40567702/ [Solid source. Peer-reviewed, abstract only.]
- Roth, S., Barron, T., Calzavara, S., Nikiforakis, N., & Stock, B. (2020). Complex Security Policy? A Longitudinal Analysis of Deployed Content Security Policies. *Network and Distributed Systems Security (NDSS) Symposium 2020*. https://www.ndss-symposium.org/wp-content/uploads/2020/02/23046-paper.pdf [Solid source. Peer-reviewed, read in large part.]
- Scholte, T., Balzarotti, D., & Kirda, E. (2012). Have things changed now? An empirical study on input validation vulnerabilities in web applications. *Computers & Security, 31(3), 344–356*. https://seclab.nu/static/publications/cs2012input.pdf [Solid source. Peer-reviewed, read in large part.]
- Sridhar, K., & Ng, M. (2021). Hacking for good: Leveraging HackerOne data to develop an economic model of Bug Bounties. *Journal of Cybersecurity, 7(1), tyab007*. https://sites.wp.odu.edu/brandonjohnson022/wp-content/uploads/sites/36656/2024/11/tyab007.pdf [Solid source. Peer-reviewed, read in large part.]
- Stock, B., Johns, M., Steffens, M., & Backes, M. (2017). How the Web Tangled Itself: Uncovering the History of Client-Side Web (In)Security. *26th USENIX Security Symposium*. https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-stock.pdf [Solid source. Peer-reviewed, read in large part.]
- Vanderlinden, V., & Franken, G. (2026). Security. *The 2025 Web Almanac by HTTP Archive*. https://almanac.httparchive.org/en/2025/security [Solid source. Read in large part.]
- Weichselbaum, L., Spagnuolo, M., Lekies, S., & Janc, A. (2016). CSP Is Dead, Long Live CSP! On the Insecurity of Whitelists and the Future of Content Security Policy. *Proceedings of the 23rd ACM Conference on Computer and Communications Security*. https://storage.googleapis.com/gweb-research2023-media/pubtools/pdf/45542.pdf [Medium trust. Peer-reviewed, read in large part.]
- Weinberger, J., Saxena, P., Akhawe, D., Finifter, M., Shin, R., & Song, D. (2011b). An Empirical Analysis of XSS Sanitization in Web Application Frameworks. *EECS Department, University of California, Berkeley Technical Report UCB/EECS-2011-11*. https://www2.eecs.berkeley.edu/Pubs/TechRpts/2011/Archive/EECS-2011-11.pdf [Medium trust. Read in large part.]
- West, M., & Sartori, A. (2026). Content Security Policy Level 3. *W3C Working Draft*. https://www.w3.org/TR/2026/WD-CSP3-20261027/ [Solid source. Documentation, read in large part.]
- MITRE (n.d.b). CWE-352: Cross-site request forgery. *Common Weakness Enumeration*. https://cwe.mitre.org/data/definitions/352.html [Solid source. Documentation, read in large part.]
- MITRE (n.d.a). CWE-1021: Improper restriction of rendered UI layers or frames. *Common Weakness Enumeration*. https://cwe.mitre.org/data/definitions/1021.html [Solid source. Documentation, read in large part.]
- MITRE (n.d.e). CWE-89: Improper neutralization of special elements used in an SQL command. *Common Weakness Enumeration*. https://cwe.mitre.org/data/definitions/89.html [Solid source. Documentation, read in large part.]
- MITRE (n.d.d). CWE-79: Improper neutralization of input during web page generation. *Common Weakness Enumeration*. https://cwe.mitre.org/data/definitions/79.html [Solid source. Documentation, read in large part.]
- OWASP Cheat Sheets Series Team (n.d.c). SQL injection prevention cheat sheet. *OWASP Cheat Sheet Series*. https://cheatsheetseries.owasp.org/cheatsheets/SQL_Injection_Prevention_Cheat_Sheet [Medium trust. Read in large part.]
- OWASP Cheat Sheets Series Team (n.d.a). Cross site scripting prevention cheat sheet. *OWASP Cheat Sheet Series*. https://cheatsheetseries.owasp.org/cheatsheets/Cross_Site_Scripting_Prevention_Cheat_Sheet.html [Medium trust. Documentation, read in large part.]
- OWASP Cheat Sheets Series Team (n.d.b). Cross-site request forgery prevention cheat sheet. *OWASP Cheat Sheet Series*. https://cheatsheetseries.owasp.org/cheatsheets/Cross-Site_Request_Forgery_Prevention_Cheat_Sheet.html [Medium trust. Read in large part.]
- OWASP Foundation (2017). 2017 Top 10. *OWASP Top Ten 2017*. https://owasp.github.io/www-project-top-ten/2017/Top_10 [Solid source. Documentation, read in large part.]
- OWASP Foundation (2025c). Introduction. *OWASP Top 10:2025*. https://top10.owasp.org/2025/0x00_2025-Introduction/ [Medium trust. Documentation, read in large part.]
- OWASP Foundation (2025b). Establishing a Modern Application Security Program. *OWASP Top 10:2025*. https://top10.owasp.org/2025/0x03_2025-Establishing_a_Modern_Application_Security_Program/ [Medium trust. Read in large part.]
- OWASP Foundation (2021). Introduction. *OWASP Top 10:2021*. https://top10.owasp.org/2021/A00_2021_Introduction/ [Solid source. Documentation, read in large part.]
- OWASP Foundation (n.d.). OWASP Application Security Verification Standard. *OWASP Foundation*. https://asvs.owasp.org/ [Solid source. Documentation, read in large part.]
- OWASP Foundation (2025d). Preface. *OWASP Application Security Verification Standard 5.0.0*. https://github.com/OWASP/ASVS/blob/v5.0.0/5.0/en/0x02-Preface.md [Solid source. Documentation, read in large part.]
- WHATWG (2026b). HTML. *WHATWG Living Standard*. https://html.spec.whatwg.org/multipage/browsers.html#origins [Solid source. Documentation, read in large part.]
- WHATWG (2026a). Fetch. *WHATWG Living Standard*. https://fetch.spec.whatwg.org/#http-cors-protocol [Solid source. Documentation, read in large part.]
