pk.org: CS 419/Lecture Notes

Web Security

The web security model & threats

Paul Krzyzanowski – 2026-11-21

The web began as a system for viewing documents, but it is now a platform for running applications. The browser executes code from sites the user never chose to trust. A single page may assemble content from dozens of sources. This combination creates security problems unlike those of conventional software: code from different, possibly hostile, parties runs side by side inside one program on the user’s computer.

We begin with how the browser evolved into an application platform. We then examine the security model browsers use to keep content from different sites apart and look at cookies, which maintain state between visits and enable tracking. We end with the most common attacks: cross-site scripting, cross-site request forgery, clickjacking, broken access control, and attacks that deceive the user rather than the software.

From Documents to Applications

When the web browser was created in 1990, it was a simple program. It parsed static pages and displayed them. The only layout options were headings, paragraphs, and lists. Even inline images came later, in 1993, with the Mosaic browser. The browser was not an interesting target for attackers. Any dynamic generation of content happened on servers, so attacks focused on those servers.

That changed with the introduction of JavaScript in Netscape Navigator 2.0 in late 1995. Pages could now include code that the browser would execute. The versions of the language on different browsers were not always compatible. The language was eventually standardized under the skin-disease-sounding name ECMAScript and continued to evolve. By 2015, JavaScript had grown into a general-purpose programming language with classes, modules, typed arrays, and the other features needed for large projects.

Modern browsers give that code a lot to work with. The Document Object Model (DOM) is the browser’s internal representation of the page’s structure. Scripts can read and modify the DOM to change what the user sees. XMLHttpRequest and the newer Fetch interface let scripts exchange data with servers without reloading the page. WebSockets support continuous two-way communication. Browsers also expose device capabilities such as geolocation, cameras, and microphones. The browser became an environment for running complete applications, such as email clients and office suites, rather than a viewer for pages.

Native code in the browser: WebAssembly

JavaScript is delivered as source code and interpreted, with just-in-time compilation providing most of its speed. Some applications need better performance. WebAssembly (Wasm) is a portable binary format for code compiled from languages such as C, C++, and Rust. The code targets a simple stack-based virtual machine that the browser translates to native code. It runs in a sandbox with a limited interface to the rest of the browser and does not get direct access to system calls. The design was finalized in 2017, and all modern browsers now support it.

WebAssembly also helps attackers. Precompiled binary code is harder to inspect than JavaScript source, and the browser cannot determine what code will do before executing it. Malicious pages have used Wasm to run cryptocurrency mining software more efficiently than JavaScript allows.

The modern attack surface

The web evolved from presenting pages to running complete client-server applications inside the browser. Every added capability broadened the attack surface. Many features are relatively new and still changing, which increases the likelihood of bugs. Browsers do not implement every detail of the specifications identically, so a feature may be safe on one browser but exploitable on another.

HTTPS and its limits

We covered Transport Layer Security (TLS) in detail earlier. The original web protocol, HTTP (the Hypertext Transfer Protocol), transmits everything in plaintext: URLs, page content, form data, and cookies. Anyone monitoring the network, such as on public WiFi, can read or modify all of it. HTTPS is HTTP sent over a TLS connection. It gives web traffic the guarantees TLS provides: confidentiality, integrity, and authentication of the server through its certificate.

HTTPS is essential, but it only protects data in transit. Several problems remain even when every connection is encrypted:

The attacks we examine later all work over encrypted connections, since they target the browser, the server, or the user rather than the network.

The Web Security Model

A traditional application is installed as a single program. It may use external libraries, but the author chose them and tested them together. A web application assembles itself at load time from components fetched from different places: scripts, fonts, images, video, and embedded frames that contain their own scripts and content.

This raises questions that traditional software does not face. If a page imports JavaScript from several sources, will it keep working as those scripts are updated? Do the scripts do anything malicious now, and might their authors change them later? How should elements on a page be allowed to interact? Consider a page that loads analytics code from one company and the jQuery library, a popular collection of JavaScript utilities, from another. Can the analytics code read variables that belong to jQuery? The scripts came from different places, but the page author chose to include both, so perhaps they should be able to interact. Should a script inside an embedded advertisement have the same access?

The browser needs a policy that decides these interactions. Before we get to the policy, we need the concept of a frame.

Frames and iframes

A browser window may contain documents from different sources. Each document is rendered inside a frame. An iframe is an inline frame that embeds one page inside another at a chosen position. Think of a frame as a web page within a web page. Iframes are widely used for advertisements, social media widgets, and embedded content such as maps and videos.

A core goal of browser security is to isolate content that comes from different sources. If a.com is open in one tab and b.com in another, they should not be able to read each other’s data. The same holds when b.com appears in a frame inside a page from a.com. A script running in the a.com page should not be able to read or modify the content of the embedded frame. The frame’s scripts should not be able to reach the surrounding page either.

The same-origin policy

The security model browsers use is the same-origin policy. Scripts loaded into a page may read and modify only data that came from the same origin as that page. The policy prevents a page’s scripts from reading another origin’s page content, stored data, and network responses without permission. But it still allows cross-origin activities such as displaying images, following links, and submitting forms. We will return to this distinction with cross-site request forgery. An origin is the combination of three components of a URL: the scheme (protocol), the hostname, and the port number.

The scheme must match because a web server can be configured to provide different content for http and https. For example, http://example.com and https://example.com are different origins.

The hostname must match exactly because one web server commonly hosts content for multiple hostnames. Subdomains may also be entirely separate systems. For instance, www.cs.rutgers.edu may be a different machine, running different content, than rutgers.edu.

The port number must match because different services may run on different ports of the same host. For example, http://example.com:80 and http://example.com:8080 are different origins. If a port is not specified, it defaults to 80 for http and 443 for https.

The following comparisons are against the origin of http://www.example.com:80/page.html:

The same-origin policy is the cornerstone of web security. Without it, a script on any page could read data from any other page the user has open. A malicious page in one tab could read account information from the bank site open in another tab.

What the same-origin policy allows

Each origin has its own set of client-side resources:

Cookies are not on this list because they are scoped by domains and paths rather than by origins. We will cover those rules shortly.

Every window, frame, and object gets the origin of the URL that was used to load it. An embedded frame gets the origin of its own contents, not the origin of the page around it. JavaScript executes with the authority of the frame it is loaded into, regardless of where the code came from. If cnn.com loads a script from jquery.com, that script runs with the authority of cnn.com. It can read the page’s cookies, modify the DOM, and call functions defined by other scripts on the page. Including a script is therefore a trust decision.

Passive content, non-executable content such as images and stylesheets, has no authority. This is normally safe, since passive content does not contain code. But attacks have hidden code in passive content and then tricked the browser into treating the content as active, as we will see shortly.

Cross-origin content

Content from other origins can be displayed, but scripts cannot read or write it. JavaScript in two frames from different origins cannot interact directly. The postMessage interface provides a controlled exception: one frame can send a message, and another frame can choose to receive it. Both frames must be explicitly programmed to do this, so it cannot happen by accident. For example, one frame sends a message to its parent:

window.parent.postMessage("message", "https://target-domain.com");

The receiving frame registers a listener and checks who sent the message:

window.addEventListener("message", (event) => {
  if (event.origin === "https://trusted-domain.com") {
    console.log("Received:", event.data);
  }
});

One distinction can seem odd: the browser may display or execute a cross-origin resource while preventing the page’s scripts from reading its underlying contents. The policy restricts what scripts inside the browser can do, not what the content’s publisher has made public. A curious user can still download any of this content directly, with a tool such as curl, and inspect it.

MIME sniffing

A MIME sniffing attack gets the browser to treat content that a site intended as data, such as a user-uploaded file, as a page or script. The attacker gains code execution on a site that believed it was serving only data.

Browsers do not always trust the content type a server declares. MIME sniffing is a browser feature that guesses the type of a resource from its actual bytes, originally to compensate for misconfigured servers. The guessing becomes dangerous when a site serves user-supplied content. A file uploaded as plain text or an image can contain HTML and script, and a browser that sniffs the content may interpret the file as a web page and run the script. A server can send the header X-Content-Type-Options: nosniff, which instructs the browser to honor declared content types. The browser then treats an upload as the declared type and rejects scripts and stylesheets served with the wrong type.

Cross-Origin Resource Sharing (CORS)

The same-origin policy is sometimes too strict. A script cannot read responses from another origin, even when the two origins belong to the same organization. poopybrain.com and www.poopybrain.com are distinct origins, as are the http and https versions of the same site. A site’s own services often live on separate hostnames, such as api.example.com.

Cross-Origin Resource Sharing (CORS) lets a server state which other origins may read its responses. The server declares its policy in an HTTP response header. For example, if the server at https://service.example.com responds with the header:

Access-Control-Allow-Origin: https://www.example.com

then the browser permits scripts running on pages from https://www.example.com to read responses from service.example.com. Note that sending a request and reading the response are separate operations: a request can reach the server even when the browser prevents the script from reading the response. CORS controls which origins may read responses, but it does not authenticate users or prevent the forged requests we will see with cross-site request forgery.

Mixed content

A page served over HTTPS might request a component, such as a script, through a URL that specifies plain HTTP:

<script src="http://www.mysite.com/script.js"> </script>

The browser follows the scheme in the URL, so the script travels unencrypted. An active network attacker can replace it in transit, and the modified script then runs with the full authority of the HTTPS page. Modern browsers block mixed active content such as scripts, and many upgrade these requests to HTTPS automatically. Page authors can avoid the problem by always specifying https:// in URLs:

<script src="https://www.mysite.com/script.js"> </script>

Cookies

Cookies are name-value pairs designed to maintain state between a web browser and a server. HTTP itself is stateless: each request stands alone, and the protocol does not connect one request to the next. Cookies supply the missing state. A browser sends all cookies that apply to a page with each HTTP request:

GET /mypage.html HTTP/1.1
Host: www.poopybrain.com
Cookie: username=paul; uid=501

Servers set cookies through an HTTP header in a response. For example, the headers:

Set-Cookie: username=paul
Set-Cookie: uid=501

tell the browser to store two cookies: username=paul and uid=501.

What cookies are used for

Cookies serve three purposes:

Authentication cookies and tracking cookies use the same mechanism and syntax. The difference lies entirely in how the application uses them.

Session and persistent cookies

Cookies come in two types, and this distinction is separate from what the cookie is used for (do not confuse a session cookie with a cookie used for session management). A session cookie has no explicit expiration date and is meant to last only until the browser exits. A persistent cookie has an expiration date and survives a browser restart. The separation is not absolute, since a browser that restores a previous browsing session can restore session cookies along with it.

The server’s Set-Cookie header decides which type a cookie is. A cookie without an expiration date is a session cookie:

Set-Cookie: name=paul

A cookie with an expiration date is persistent, and the browser saves it:

Set-Cookie: name=paul; expires=Thu, 1 Apr 2027 17:30:00 GMT;

Websites often present a checkbox on a login screen asking whether you want to stay signed in. Checking the box simply causes the server to add the expires option to the authentication cookie.

Cookie scope: domain and path

The browser must decide which cookies to send with each request. The scope of a cookie is defined by its domain and path. Unlike the same-origin policy, cookie scope ignores the scheme and the port by default. Without explicit Domain and Path attributes, the cookie applies to the host that set it and the directory containing the requested resource.

A server can widen the domain to cover an entire site. Setting a cookie for the domain example.com causes the browser to send that cookie to example.com and to every domain under it, such as www.example.com:

Set-Cookie: name=paul; domain=example.com

For the browser to accept the cookie, the specified domain must include the origin domain of the frame. A page at www.example.com can set a cookie for example.com but cannot set one for foo.example.com or for poopybrain.com.

The path restricts the cookie to part of the site. The browser sends the cookie when the requested URL’s path is the cookie’s path or a directory beneath it. For example:

Set-Cookie: name=paul; path=/

sends the cookie for every path under the root of the domain, while:

Set-Cookie: name=paul; path=/419

sends the cookie for /419 and for paths beneath it, such as /419/notes, but not for /4190.

Protecting cookies: HttpOnly, Secure, and SameSite

Cookies often contain session identifiers and other authentication data. If malicious code running on a page could read those cookies, or if an eavesdropper could see them on the network, the attacker could impersonate the user. Three cookie attributes limit the exposure:

A server combines these attributes in one header. The example uses an opaque session identifier rather than a username, since the cookie’s value is what authenticates the session:

Set-Cookie: session_id=f3a9c417d02b; path=/; HttpOnly; Secure; SameSite=Lax

A session identifier must be unpredictable, since possession of it is enough to use the session. The server must also expire sessions and invalidate a session when the user logs out.

Third-party cookies and tracking

If a cookie belongs to the same site as the page the user sees in the address bar, it is a first-party cookie. Components loaded from other domains can also set cookies: images, scripts, and iframe content such as ads and social media plugins. These are third-party cookies. Third-party cookies are mostly used for tracking users across sites, so they are also called tracking cookies.

Every time the browser requests content from a third-party server, it sends whatever cookies it holds for that server’s domain. By assigning each browser a unique identifier in a cookie, the server can connect requests made from different pages and different sites into one profile.

For example, a Facebook Like button on rutgers.edu is content with a facebook.com origin. When the browser requests the button, the request includes the user’s facebook.com cookies, which can include a Facebook session cookie that identifies the user. Facebook’s servers can therefore record which sites the user visits, among every site that embeds a Like button, image, or ad from Facebook. A user without a Facebook account can still be tracked anonymously: the server creates a cookie with a unique ID, and the browser presents it on every site that loads Facebook content.

Browsers can block third-party cookies. Safari blocks them by default, and Firefox isolates them so a tracker’s cookie on one site cannot be read from another. Chrome announced plans to phase them out but abandoned those plans in 2025. Blocking can break some embedded components, such as social media widgets, which is one reason adoption took years.

Web-Based Attacks

With the security model and cookies covered, we can examine the most common attacks on web applications and their users.

Malicious JavaScript

We saw drive-by downloads earlier, when we covered malware: a web page exploits a vulnerability in the browser, or in a component the browser invokes, to install software on the visitor’s machine. The page may be built by the attacker, but malicious content is also served through legitimate sites. An ad is delivered in an iframe and loads its own scripts, so a trusted page can host hostile code that the site’s owners never wrote or reviewed.

Malicious JavaScript does not need to exploit anything to cause harm. JavaScript is a complete programming language, and a page’s code can do things the user did not expect: present additional ads, mine cryptocurrency, generate fake clicks on ads, or register fake likes and follows on social media platforms.

Cross-site scripting (XSS)

Cross-site scripting (XSS) gets the attacker’s JavaScript into a page served by a legitimate site. The injected script runs with the authority of that page’s origin, so the same-origin policy does not protect against it: the browser treats the code as part of the page. XSS remains one of the most common web attacks and is among the top risks in the list published by OWASP, the Open Worldwide Application Security Project, a nonprofit that tracks web application security.

XSS belongs to the same family as the SQL and command injection attacks we covered earlier. User input that becomes part of a page must be treated as data. If the input can contain markup or script, it becomes part of the program. Consider a search page that echoes the search string back in its response, as in “Results for pizza.” Now suppose the search string is not a word but markup:

<script>alert("Injected script");</script>

If the server inserts the string into the results page without encoding it, the page now contains a script element, and the browser of anyone who views the page runs the script. The alert box is harmless, but the attacker chooses what runs in its place.

Two common forms of XSS differ in how the malicious input reaches the page. In a reflected XSS attack, the malicious content is in a page request, typically a link the victim is lured into clicking. The echoing search page above is the classic carrier, as is a failed login response that displays the name that was not found. A request like this:

www.mysite.com/login.asp?user=<script>malicious_code(...)</script>

produces a response page containing the script, which the victim’s browser then executes as part of the site’s own page.

In a stored XSS (or persistent XSS) attack, the malicious input is saved on the server and later served to other users. Online forums and comment sections are the classic locations. If a user posts a comment containing an inline script and the site stores it unsanitized, every future visitor who views that page runs the script. The victims never click anything unusual.

XSS can also occur entirely in the browser. In a DOM-based XSS attack, the page’s own JavaScript takes untrusted data, such as text from the URL, and inserts it into the page as HTML. The malicious input never has to appear in the server’s response, since the page’s client-side code performs the injection itself.

An injected script can do anything the page’s own scripts can do. Its capabilities include the following:

The HttpOnly flag limits the first item but not the rest. An injected script cannot read an HttpOnly session cookie, but it can still issue requests through the victim’s browser, and the browser attaches the session cookie to requests to that site. The attacker acts as the user without ever seeing the credential.

The main defense against XSS is to keep untrusted data from becoming executable page content. The required encoding depends on where the data is inserted: HTML escaping protects text placed into HTML, but it does not make arbitrary input safe inside JavaScript. Several practices follow from this principle:

Cross-site request forgery (CSRF)

Cross-site request forgery (CSRF) makes the victim’s browser send a request the victim never intended to a site where the victim is logged in. The attacker never sees or steals the victim’s cookies. The browser attaches them automatically.

The attack works because of how cookies work. A browser sends all applicable cookies with every request to a domain, including requests that were triggered by a link or script on some other site. If the victim has a valid authentication cookie for a site, any request to that site arrives authenticated, no matter what caused the browser to send it.

Here’s an example of a real CSRF attack, from the era when Netflix rented DVDs and members kept an ordered queue of discs to receive. A logged-in Netflix member has an authentication cookie. The member then visits an unrelated malicious page containing a link or script that references this URL:

http://www.netflix.com/JSON/AddToQueue?movieid=860103

The browser fetches the URL, sends the Netflix cookies along, and the server adds Plan 9 from Outer Space to the victim’s queue. This attack really worked, and Netflix later fixed it. A rearranged movie queue is a minor annoyance, but the same mechanism applies wherever a URL causes an action. An e-commerce site might accept a shipping address change through URL parameters. A banking site might accept a transfer request, which was the case with ING Direct in 2008:

http://www.bank.com/transfer?amount=1000000&to_account=417824919

Getting the victim to click a link, or merely to view a page that loads the URL as an image source, is enough.

Web servers can defend against CSRF in several ways:

Users can reduce their exposure as well, by logging out of sites when finished and declining the “remember me” option, so authentication cookies are less likely to be waiting when a malicious page forges a request.

SQL injection through the web

We covered SQL injection in detail earlier: a program builds a database query by pasting user input into a string, and crafted input changes the query. The web is where most SQL injection happens. Nearly every web service has a database behind it, and every form field and URL parameter is user input that may end up inside a query. A login form that concatenates the submitted name and password into a select statement can be tricked into returning all users, bypassing authentication, or modifying the database.

The defenses are the ones we have seen: parameterized queries, which keep user input out of the query structure entirely, with input validation as a secondary layer.

Broken access control

A broken access control vulnerability lets someone access data or perform an action without the required permission. The server fails to enforce authorization.

A server must check whether the logged-in user is authorized to perform each requested action. Suppose a student views a submission at /submission?id=1042 and changes the number in the URL to 1043. If the server returns another student’s submission without checking ownership, the application has broken access control. Being logged in does not grant access to every record. Flaws of this kind sit at the top of the OWASP rankings, since every application has its own authorization rules and every endpoint must enforce them.

The broader lesson is that browser controls do not secure the server. An attacker can modify requests, change hidden form fields, bypass JavaScript validation, and call an endpoint without using the site’s interface at all. The server must validate input and enforce authorization on every request, whatever the page’s own code does.

Clickjacking

Clickjacking tricks a user into clicking something other than what they see. The user performs a real click, carrying real credentials, on a control chosen by the attacker.

The attack overlays page elements. A site may present a “win a free iPad” image, while malicious JavaScript places an invisible iframe over it containing a different link or button. The user sees only the image, but the click lands in the invisible frame. That hidden click could confirm a bank transfer or change an account setting.

A site defends its pages against clickjacking by telling browsers who may frame them:

Pages once defended themselves with JavaScript that compared window.self with window.top to detect that they were framed and refuse to operate. Attackers found ways to disable or evade these frame-breaking scripts, so they are not a reliable defense.

Homograph attacks

A homograph attack (sometimes more accurately called a homoglyph attack) deceives a user with a domain name whose characters look like those of a legitimate name. The goal is to get the victim onto an attacker’s site, usually for phishing, while the address looks correct. We saw the related tricks of typosquatting and combosquatting earlier, with social engineering. Those exploit typing mistakes and plausible-looking word additions, while a homograph attack exploits characters that look alike.

Even within the Latin alphabet, some characters are nearly identical in common fonts. The digit one (1), lowercase L (l), and capital i (I) can be indistinguishable, as can zero (0) and the letter O. An attacker can register paypai.com and write it with a capital I as paypaI.com, where the capital I passes for the lowercase l of paypal.com in a phishing message.

The attack became far more powerful with internationalized domain names (IDN), which made Unicode characters valid in domain names. Unicode contains more than 150,000 characters covering the world’s writing systems, and many characters in different scripts look identical. The Greek and Cyrillic alphabets both contain letters indistinguishable from the Latin A, B, and E, each with its own code point:

Latin Greek Cyrillic
A U+0041 U+0391 U+0410
B U+0042 U+0392 U+0412
E U+0045 U+0395 U+0415

With Cyrillic lookalikes for p, a, and y, an attacker can register a domain that renders exactly as paypal.com while being an entirely different name. Researchers demonstrated the same construction for wikipedia.org using Cyrillic and Belarusian-Ukrainian characters. Unicode also allows multiple representations of the same character: an accented á is a single code point but can also be written as a letter followed by a combining accent. Comparing strings that may mix these forms is error-prone, which complicates any defense based on checking names.

Browsers now defend against the worst of this by refusing to display suspicious internationalized names, such as names that mix scripts, in their Unicode form. The browser shows the name in Punycode, an ASCII encoding used internally for international domain names, so a Cyrillic imitation of paypal.com appears in the address bar as an xn-- string that looks nothing like PayPal. But this protection applies only in the browser, after the user has followed the link. A homograph URL in an email or text message still displays the lookalike characters, so the user decides to click on a link that looks legitimate.

Tracking via images

The same-origin policy treats images as passive content with no authority, so it would seem that images cannot cause problems. But loading an image generates an HTTP request to the server that hosts it, and that request reveals a lot about the user. Images have therefore become a standard tool for tracking users.

An image tag can pass parameters to the server, just like any other URL:

<img src="http://evil.com/images/balloons.jpg?extra_information" height="300" width="400"/>

The parameter can identify the page hosting the image or the logged-in user who viewed it. When a browser loads an image, its request to the hosting server includes:

The server also logs the arrival time of each request, which records when the user visited the page.

The image itself can be shrunk to a single pixel and made invisible:

<img src="https://attacker.com/onebyone.png" height="1" width="1" />

These invisible images are called tracking pixels, web beacons, or spy pixels. A tracking service hosts the pixel on its own servers and has websites embed it in their pages. When third-party cookies are permitted, the first time a browser requests the pixel, the service sets a cookie with a unique identifier. Every later request for a pixel from that service, on any participating site, presents the same cookie. The service does not know the user’s name, but it can tell that the same browser visited a shoe store on Monday and a tech blog on Tuesday, and it builds a profile of interests from the URLs and parameters.

This is cross-site tracking, and advertising is its main application. If a user views a product page containing an ad network’s pixel:

<img src="https://ad-network.com/pixel?item=shoes123" width="1" height="1" />

the network records the interest. When the user later visits a news site that shows ads from the same network, the ad selection server uses the profile to present shoe ads. This is called retargeting, or remarketing in Google’s terminology. Meta sells this capability as the Meta Pixel: a site owner adds a snippet of code, and Meta reports which people visited, which of its ads they saw beforehand, and what they placed in carts.

Tracking pixels are also standard in marketing email. A message includes a pixel whose URL identifies the specific message:

<img src="https://tracking-server.com/open?emailID=abcd1234" width="1" height="1" />

The recipient sees nothing, but when the mail client fetches the image, the server learns that the image was fetched and when. A fetch is strong evidence that the message was opened, but some mail services fetch images automatically on the recipient’s behalf, so it is not proof. Ad blockers, mail clients that block or proxy remote images, and browser restrictions on third-party cookies all reduce this tracking, but users are rarely aware of how much of it is happening.

Deception with images and links

Images also serve social engineering directly. A fraudulent site can copy logos from well-known brands or display certification badges. A page claiming to be a “Microsoft Gold Partner” or “100% secure” borrows credibility it has not earned.

Links can lie about their destination. Browsers show the URL of a link, in a status bar or tooltip, before the user clicks it. A page’s JavaScript can change the link’s target at click time, so the displayed URL and the actual destination differ:

<a href="http://www.paypal.com/signin"
    onclick="this.href = 'http://www.evil.com/';">PayPal</a>

Hovering over this link shows a legitimate-looking PayPal address. Clicking it takes the user to the attacker’s site.

The application attacks compared

The application-level attacks are distinguished by what the attacker causes to happen:

Attack What the attacker causes
Cross-site scripting (XSS) The trusted page executes the attacker’s code.
Cross-site request forgery (CSRF) The browser sends an unwanted authenticated request.
Clickjacking The user clicks a concealed control.
Broken access control The server permits an unauthorized action or disclosure.