The newest Cross-Site Scripting (XSS) resources are on the Cross-Site Scripting (XSS) page. For a reading order instead of a date order, see the Cross-Site Scripting (XSS) learning path.
| Date Added | Link | Excerpt |
|---|---|---|
| 2019-09-15 2019 | Cross-site scripting - Wikipedia beginner 15 min read | Cross-site scripting (XSS) vulnerabilities allow attackers to inject client-side scripts into web pages viewed by other users, bypassing security controls like the same-origin policy. These flaws, found in web applications and their supporting systems, enable attackers to execute malicious code within the user's browser context, leading to data theft, session hijacking, and privilege escalation. XSS attacks, first termed in 2000, have evolved from initial reflected attacks to include persistent variations where malicious data is stored by the server and delivered to multiple users, and DOM-based attacks that exploit client-side JavaScript. |
| 2019-08-28 2019 | GitHub - hakluke/weaponised-XSS-payloads: XSS payloads designed to turn alert(1) into P1 intermediate 1 min read | Library of weaponized XSS payloads designed to elevate basic XSS vulnerabilities to critical impact, such as account takeover. These JavaScript files, loadable via script tags, perform sensitive functions within victim browsers on popular CMS platforms. The repository, inspired by techniques for upgrading XSS bugs from medium to critical, includes examples for direct inclusion or PHP hosting with the correct `Content-Type` header. |
| 2019-05-19 2019 | XSSed my way to 1000$ | I'm Gaurav Narwani intermediate 3 min read | Reflected XSS filter bypass on Synack involved exploiting a web application's handling of JavaScript. By crafting a payload that bypassed character filtering and leveraged an implicit `else` condition within an `if(false)` block, the researcher successfully triggered an XSS vulnerability, earning a $1000 bounty. The technique demonstrated how careful analysis of code structure and character encoding could circumvent security measures. |
| 2019-01-15 2019 | Excess XSS: A comprehensive tutorial on cross-site scripting beginner 21 min read | Tutorial on Cross-Site Scripting (XSS) vulnerabilities, explaining how attackers exploit websites to inject malicious JavaScript into user browsers. It details three types of XSS attacks: Persistent XSS, where malicious strings are stored in the database; Reflected XSS, where strings originate from user requests; and DOM-based XSS, with vulnerabilities in client-side code. The tutorial illustrates how attackers can steal cookies using `document.cookie`, record keystrokes with `addEventListener`, or trick users with fake login forms via DOM manipulation. |
| 2018-12-31 2018 | foospidy/payloads: Git All the Payloads! A collection of web attack payload intermediate 2 min read | Library for aggregating web attack payloads, including XSS vectors, SQL injection payloads, path traversal, and command injection. It consolidates resources from various sources like SecLists, fuzzdb, and specific CTF event logs, facilitating easier access to a wide array of attack techniques. The `get.sh` script can be used to download and decompress external payload files. |
| 2018-09-15 2018 | Into the Borg – SSRF inside Google production network | OpnSec intermediate 8 min read SSRF | Server-Side Request Forgery (SSRF) within Google's production network was discovered via an unpatched version of Google Caja used by Google Sites, allowing unintended fetching of internal resources. Testing revealed that the Caja server would fetch specified JavaScript resources not just from external sites, but also from internal Google IP addresses. This led to the retrieval of sensitive internal data, including Borglet monitoring pages, providing details about server hardware, active services like video encoding, Gmail, and Ads, and job arguments resembling code, indicating deep access into Google's infrastructure. |
| 2018-08-14 2018 | Unleashing an Ultimate XSS Polyglot · 0xSobky/HackVault Wiki intermediate 2 min read | Polyglot is a technique for crafting cross-site scripting (XSS) payloads that execute across various injection contexts without modification. This resource details an ultimate XSS polyglot, demonstrating its effectiveness within double-quoted, single-quoted, and unquoted tag attributes, as well as within HTML comments, common HTML tags like `<svg>` and `<iframe>`, JavaScript strings, and event handlers. The polyglot utilizes clever syntax, including multi-line comments and URI schemes, to bypass common filter bypasses like `preg_replace('/\b(?:javascript:|on\w+=)/', '', PAYLOAD)`. |
| 2018-08-13 2018 | XSS Payloads beginner | The content provided is concise and simply states "XSS Payloads." This likely refers to a topic related to Cross-Site Scripting (XSS) attacks, where malicious code is injected into a website to exploit vulnerabilities. XSS payloads are the specific scripts or code used in these attacks. The summary suggests a focus on understanding and potentially mitigating XSS vulnerabilities by studying and being aware of common XSS payloads. |
| 2018-07-30 2018 | The Real Impact of Cross-Site Scripting | Dionach intermediate 7 min read | Cross-site scripting (XSS) vulnerabilities enable attackers to execute arbitrary JavaScript and HTML code within a user's browser, leading to severe risks like account hijacking via session cookie theft, credential harvesting by impersonating login pages, sensitive data exfiltration, and even drive-by downloads of malware. Practical examples, using tools like the OWASP Broken Web Applications suite, demonstrate how stored and reflected XSS flaws can be exploited to steal cookies, redirect users to fake login forms, initiate unauthorized transactions, or distribute malicious payloads like ransomware through fake plugin updates, showcasing XSS as a prevalent and often underestimated web application threat. |
| 2018-07-30 2018 | Cross site scripting XSS beginner | Cross-Site Scripting (XSS) is a security vulnerability where attackers inject malicious scripts into web pages viewed by other users. This can lead to theft of sensitive data, session hijacking, or defacement of websites. XSS attacks can be stored, reflected, or DOM-based. Prevention methods include input validation, output encoding, and implementing Content Security Policy (CSP). Regular security audits and staying updated on security best practices are crucial to protect against XSS attacks. → slideshare.net |
| 2018-07-30 2018 | Cross Site Scripting ( XSS) beginner 6 min read | Talk on Cross-Site Scripting (XSS) vulnerabilities, detailing how attackers inject client-side code to steal cookies, access private information, or perform actions on behalf of users. It categorizes XSS into non-persistent, persistent, and DOM-based attacks and emphasizes server-side validation, sanitization, and output escaping as primary prevention methods. The talk also mentions web vulnerability scanners like Burp Suite for testing XSS flaws. → slideshare.net |
| 2018-07-15 2018 | [HTML] 666 lines of XSS vectors, suitable for attacking an API - Pastebin.c intermediate 11 min read | Cross-site scripting (XSS) vectors, including numerous variations targeting script tags, event handlers, and attribute injection, are compiled in this resource. The vectors leverage obfuscation techniques such as hexadecimal encoding of characters, null bytes, and newline characters within JavaScript payloads and HTML structures to bypass filters and exploit vulnerabilities. |
| 2018-07-03 2018 | Reflected Client XSS at Amazon.com intermediate 4 min read | Reflected client-side XSS vulnerability found at Amazon.com impacting the `masclient` product page endpoint. Attackers can exploit this by crafting a malicious URL that renders user-supplied HTML or JavaScript within a script tag, bypassing input capitalization and script tag restrictions. The vulnerability allows for cookie theft or redirection to attacker-controlled sites, though payload size limitations and browser XSS auditors present challenges. |
| 2018-06-27 2018 | Reflected XSS on Stack Overflow intermediate | Reflected XSS on Stack Overflow, discovered using the Reflector Burp Suite extension, exploited a vulnerable parameter within a cookie to execute payloads such as `></script><img src=x onerror=alert(1)>`. The vulnerability allowed for cross-site scripting execution, confirmed by a successful `alert(1)` pop-up. The issue was reported on February 14th, triaged on February 19th, and subsequently fixed on April 3rd. |
| 2018-06-26 2018 | How to identify whether XSS is reflected or DOM based? intermediate | The content provided is a title mentioning how to distinguish between reflected XSS and DOM-based XSS. It appears to be a Reddit post with 5 votes and 4 comments. |
| 2018-06-26 2018 | How I Found Stored XSS in Yahoo! intermediate | The content titled "How I Found Stored XSS in Yahoo!" has garnered 17 votes and 4 comments on Reddit. |
| 2018-06-26 2018 | What is XSS? Cross-site Scripting Explained beginner | The content is a Reddit post titled "What is XSS? Cross-site Scripting Explained" with 5 votes and 0 comments. It likely discusses the concept of Cross-site Scripting (XSS), a type of security vulnerability where attackers inject malicious scripts into web pages viewed by other users. The post may explain how XSS works, its impact on web security, and ways to prevent it. |
| 2018-06-26 2018 | Self-XSS + CSRF to Stored XSS intermediate 1 min read CSRF | Self-XSS chained with CSRF can be leveraged to achieve stored XSS. This technique involves exploiting a website where a user changing their name can inject JavaScript, typically a Self-XSS, which has no inherent impact. By crafting a CSRF payload, an attacker can trick a victim into submitting a profile update containing malicious JavaScript from a service like XSSHunter. This, when combined with an on-load form submission, allows the attacker to execute code in the victim's browser upon homepage navigation, effectively creating a stored XSS vulnerability without the need for CSP protection. |
| 2018-06-26 2018 | The story behined the Strong XSS filter bypass! intermediate 1 min read | Namecheap XSS filter bypass, discovered on support.namecheap.com, involved URL encoding and advanced payloads to circumvent firewall protections. The researcher successfully bypassed the XSS filter by employing similar payloads before and after the main injection, ultimately achieving a JavaScript alert pop-up and identifying further vulnerabilities. |
| 2018-06-26 2018 | Demonstrating Reflected versus DOM Based XSS intermediate 7 min read | Reflected versus DOM-based XSS vulnerabilities are demonstrated using the OWASP Juice Shop and Altoro Mutual applications. DOM-based XSS in the Juice Shop, often overlooked by proxies and browsers, is shown to be more exploitable than reflected XSS in Altoro Mutual, especially when leveraging a malicious server to steal user cookies and retrieve passwords via JWT decoding and MD5 hashing. |
| 2018-06-15 2018 | How i converted SSRF TO XSS in jira. intermediate 1 min read SSRF | Jira version 5.8.13 is vulnerable to Server-Side Request Forgery (SSRF), which can be escalated to Cross-Site Scripting (XSS) by leveraging a crafted SVG payload. This technique bypasses intended functionality by manipulating the `plugins/servlet/oauth/users/icon-uri` endpoint with a malicious URI, ultimately leading to arbitrary code execution within the user's browser context. |
| 2018-06-14 2018 | Respect XSS beginner 4 min read | SharePoint cross-site scripting (XSS) vulnerability, exploitable by appending specific GET parameters to a SharePoint URL, allows attackers to inject arbitrary JavaScript. This flaw leverages the "Follow Site" feature, where the `SiteName` parameter is reflected unsanitized within a JavaScript context, enabling the execution of payloads like `-confirm(document.domain)-` against both on-premises and online versions of the popular content management system. |
| 2018-06-13 2018 | How I found a stored XSS on thousands of webshops intermediate 8 min read | Stored XSS via cache poisoning on thousands of webshops can be achieved by exploiting a misconfiguration in IBM's WebSphere Commerce, specifically allowing apostrophes in URL parameters. This allows an attacker to inject a payload into the web server's cache, which is then served to unsuspecting users. The technique involves bypassing WAFs, using XSSHunter for proof, and employing base64 obfuscation with `eval` to overcome restrictions on script tags. |
| 2018-06-08 2018 | XSS using meta Tags intermediate 1 min read | XSS using meta tags is a vulnerability discovered on a social platform where a web scraper extracted site meta information. By injecting a meta tag with a JavaScript payload into a file on an external server, an attacker could trigger XSS. The researcher also found IDOR, multiple XSS vulnerabilities, an open S3 bucket, CSRF flaws, HTML injection, and an outdated WordPress version. |
| 2018-06-08 2018 | DEV XSS Protection bypass made my quickest bounty ever!! intermediate 1 min read | XSS protection bypass technique, utilizing advanced iframe payloads, successfully exploited a vulnerability on DEV's public discussion forum. After initial HTML injection was patched, the researcher discovered that the comment box remained susceptible to iframe injections, leading to a stored XSS that bypassed existing filters. This finding resulted in a $150 bug bounty awarded in under 30 minutes. |
| 2018-06-07 2018 | Paulos Yibelo - Blog: THE BIG BAD WOLF - XSS AND MAINTAINING ACCESS intermediate 5 min read | Cross-site scripting (XSS) vulnerabilities can be leveraged for maintaining access by exploiting application features, even when cookies are protected by HTTPOnly flags. This can involve pivoting to more powerful attacks, such as changing email addresses to regain account access, exploiting blind XSS to gain remote code execution on internal services, or, as shown with Facebook, using the Graph API Explorer to obtain persistent read/write privileges for a user's profile without needing credentials. |
| 2018-06-06 2018 | UltimateHackers/XSStrike: XSS Scanner equipped with powerful fuzzing engine intermediate 2 min read | Library for detecting Cross Site Scripting (XSS) vulnerabilities. XSStrike features four parsers, an intelligent payload generator, a powerful fuzzing engine, and a fast crawler. It analyzes responses and crafts payloads based on context analysis and fuzzing, going beyond simple injection. Capabilities include reflected and DOM XSS scanning, WAF detection and evasion, and scanning for outdated JavaScript libraries. It integrates with tools like Photon, Zetanize, and Arjun. |
| 2018-06-05 2018 | Blind XSS for beginners beginner 3 min read | Blind XSS, a stored cross-site scripting vulnerability, is explained with practical tools like XSShunter, ezXSS, bXSS, KNOXSS, and Burp Collaborator. Guidance covers XSShunter setup, payload sourcing, and strategic injection points, featuring real-world examples of successful exploits against reporting systems, contact forms, and chat requests that yielded substantial bug bounty rewards. |
| 2018-05-26 2018 | File upload XSS patched intermediate | The content discusses a bug bounty write-up detailing a file upload XSS vulnerability that was successfully patched. The author describes the discovery of the vulnerability, the impact it could have had, and the steps taken to responsibly disclose it to the affected party. The post highlights the importance of thorough security testing and responsible disclosure in the bug bounty community. |
| 2018-05-19 2018 | 900$ XSS in yahoo ( Recon Wins ) news 3 min read | Yahoo XSS vulnerability discovered through extensive subdomain reconnaissance, leading to the identification of a private WebPageTest instance and a vulnerable `testdb.php` file. The successful exploitation of this Cross-Site Scripting (XSS) flaw was aided by the Knoxss XSS discovery service. |
| 2018-05-17 2018 | 7500$ worth DOM XSS in Facebook Mobile Site – Johns Simon – Medium intermediate | Facebook mobile site DOM XSS vulnerability, where a `cancel_url` parameter in the login flow could be manipulated with `javascript:prompt(1)` to execute arbitrary JavaScript, allowing for potential credential theft. This flaw, found by Johns Simon, was reported to Facebook and fixed within hours, resulting in a $7500 bug bounty. |
| 2018-04-30 2018 | Steal CSRF/Auth/Unique key Header with XSS intermediate 1 min read CSRF | Stealing CSRF and authentication tokens via Cross-Site Scripting (XSS) involves exploiting response headers. Attackers can use JavaScript's `XMLHttpRequest` to access headers not available via HTTP-only cookies, such as a `Csrf-token` header. By embedding a script that fetches a specific page, extracts the token using `getResponseHeader()`, and then sends it to an attacker-controlled server, vulnerabilities in applications can be leveraged to hijack user sessions. |
| 2017-12-12 2017 | How to Write an XSS Cookie Stealer in JavaScript to Steal Passwords « Null intermediate 8 min read | JavaScript cookie stealing techniques demonstrate how web application vulnerabilities can be exploited to capture sensitive user data. This method utilizes JavaScript's ability to access and manipulate cookies, sending them to an attacker-controlled server via URL parameters. A proof-of-concept involves creating an HTML page with embedded JavaScript that sets a cookie and then redirects the user to a PHP script. The PHP script captures the cookie from the URL, writes it to a log file, and then redirects the user to a seemingly legitimate website to avoid detection. |
| 2017-12-02 2017 | Sniping Insecure Cookies with XSS intermediate 10 min read | CVE-2017-0000 in an accounting application's use of session tokens leads to account takeover via an XSS vulnerability. The application stores JWT session tokens in a cookie accessible by JavaScript without "HttpOnly" or "Secure" flags. This allows an XSS attack to steal the token, enabling an attacker to impersonate users, including administrators, by manipulating the token's contents, particularly the user ID, due to the cookie's unsecured accessibility and the nature of JWTs. |
| 2017-12-02 2017 | bypassing htmlentities() - Paulos Yibelo - Blog intermediate | The content provided is a title mentioning bypassing htmlentities() by Paulos Yibelo on a blog. The title suggests that the blog post likely discusses a method or technique related to bypassing the htmlentities() function. It hints at a potential security or coding topic where the author may be sharing insights on how to circumvent or work around the htmlentities() function in web development or programming. |
| 2017-03-31 2017 | HTML5 Security Cheatsheet beginner 61 min read | Cheatsheet detailing HTML5 security vectors, including form hijacking via `formaction` and `id` attributes, JavaScript execution through `autofocus` and `onfocus`/`onblur` events, `javascript:` URIs in `poster` attributes for video, `onscroll` events triggered by `autofocus`, `onforminput` and `onformchange` attribute exploitation, error handlers in `SOURCE` and `VIDEO` tags, `oninput` events on form elements, inline MathML with `href` or `xlink:href`, `dirname` attribute manipulation, HTML Imports, and `srcdoc` attribute risks. |
| 2017-03-07 2017 | How I Stole Plunker Session Tokens With Angular Expressions intermediate 7 min read | Angular expression injection on Plunker allowed for the theft of session tokens by embedding malicious expressions within the plunk description meta tag. This vulnerability leveraged the misconfiguration of server-side templates being evaluated by client-side Angular, enabling an attacker to exfiltrate session IDs via crafted `<img>` tags that sent requests to an external logging service. The exploit ultimately allowed for account hijacking by replacing the victim's session cookie with the stolen token. |
| 2017-03-07 2017 | XSS without HTML: Client-Side Template Injection with AngularJS : netsec intermediate | The Reddit post titled "XSS without HTML: Client-Side Template Injection with AngularJS" in the netsec subreddit has garnered 177 votes and 10 comments. The post likely discusses a security vulnerability related to AngularJS that allows for client-side template injection without the use of HTML, potentially leading to cross-site scripting (XSS) attacks. The content appears to be focused on raising awareness about this security issue within the AngularJS framework. |
| 2017-03-07 2017 | Angular Template Injection Payloads intermediate | Library of Angular template injection payloads, including techniques for exploiting versions 1.3.0 through 1.6.0. This resource details payloads utilizing JavaScript and SVG for code execution, such as `{{constructor.constructor('alert(1)')()}}`, `{{7*7}}`, and SVG `<animate>` tags with `javascript:alert(1)`. It also references specific Angular issues like #14939 and #11290. |
| 2017-03-07 2017 | PortSwigger Web Security Blog: Adapting AngularJS Payloads to Exploit Real intermediate 3 min read | Adapting AngularJS payloads to exploit Piwik and Uber involves bypassing filtering and encoding by leveraging JavaScript sandbox escape techniques. This requires overcoming character restrictions and code limitations by manipulating prototype properties and utilizing existing objects to construct malicious payloads, such as using unicode escapes for Piwik and employing string manipulation methods like `toString()` and `fromCharCode()` for Uber, demonstrating advanced exploitation within restricted environments. |
| 2017-03-07 2017 | PortSwigger Web Security Blog: XSS without HTML: Client-Side Template Injec intermediate 11 min read | AngularJS client-side template injection, a vulnerability often overlooked by developers, can be leveraged to execute cross-site scripting (XSS) attacks. This technique exploits the way AngularJS processes user input within templates, allowing attackers to inject malicious expressions. By combining template injection with a sandbox escape, specifically by backdooring native JavaScript functions like `String.fromCharCode` or `charCodeAt`, attackers can bypass Angular's sanitization and execute arbitrary JavaScript code, compromising otherwise secure applications. |
| 2017-03-07 2017 | ng-owasp: OWASP Top 10 for AngularJS Applications intermediate | The content discusses the OWASP Top 10, a list of critical web application security risks, and how they apply to AngularJS applications. It explores security vulnerabilities specific to AngularJS, aiming to address and mitigate these risks. The focus is on understanding and implementing security measures to protect AngularJS applications from potential threats outlined in the OWASP Top 10 list. → slideshare.net |
| 2016-02-10 2016 | Preventing XSS Attacks in ASP.NET MVC using ValidateInput and AllowHTML - C intermediate | The blog discusses preventing XSS (Cross Site Security) attacks in ASP.NET MVC by utilizing ValidateInput and AllowHTML features. It aims to provide insights on how to enhance security measures to mitigate XSS vulnerabilities in ASP.NET MVC applications. |