Courses
1. Introduction to Blockchain and Solana
2. Setting Up Your Development Environment
3. Solana Architecture and Key Concepts
4. Creating and Managing Wallets
5. Understanding Solana Programs
6. Building Your First Solana Program
7. Deploying Programs on the Solana Network
8. Interacting with Solana Programs
9. Using Solana CLI and SDKs
10. Developing Decentralized Applications (DApps)
11. Smart Contract Security Best Practices
12. Testing and Debugging Solana Programs
13. Optimizing Performance on Solana
14. Exploring Solana Ecosystem Tools
1. Introduction to Blockchain and Ethereum
2. Setting Up Your Development Environment
3. Ethereum Architecture and Key Concepts
4. Creating and Managing Wallets
5. Understanding Smart Contracts
6. Building Your First Smart Contract
7. Deploying Smart Contracts on the Ethereum Network
8. Interacting with Smart Contracts
9. Using Ethereum CLI and SDKs
10. Developing Decentralized Applications (DApps)
11. Smart Contract Security Best Practices
12. Testing and Debugging Smart Contracts
13. Optimizing Performance on Ethereum
14. Exploring Ethereum Ecosystem Tools
1. Introduction to Blockchain and Polygon
2. Setting Up Your Development Environment
3. Polygon Architecture and Key Concepts
4. Creating and Managing Wallets
5. Understanding Smart Contracts on Polygon
6. Building Your First Smart Contract on Polygon
7. Deploying Smart Contracts on the Polygon Network
8. Interacting with Smart Contracts on Polygon
9. Using Polygon CLI and SDKs
10. Developing Decentralized Applications (DApps) on Polygon
11. Smart Contract Security Best Practices for Polygon
12. Testing and Debugging Smart Contracts on Polygon
13. Optimizing Performance on Polygon
14. Exploring Polygon Ecosystem Tools
1. Introduction to Cybersecurity
2. Report Writing for Penetration Testers
3. Information Gathering
4. Vulnerability Scanning
5. Introduction to Web Applications
6. Common Web Application Attacks
7. SQL Injection Attacks
8. Client-Side Attacks
9. Locating Public Exploits
10. Fixing Exploits
11. Antivirus Evasion
12. Password Attacks
13. Windows Privilege Escalation
14. Linux Privilege Escalation
15. Advanced Tunneling
16. The Metasploit Framework
17. Active Directory: Introduction and Enumeration
18. Attacking Active Directory Authentication
19. Lateral Movement in Active Directory
DOM-Based Cross-Site Scripting (Black Box)
OSWE · Chapter 19
DOM-Based Cross-Site Scripting (Black Box)
DOM-based XSS occurs entirely on the client: JavaScript reads data from an attacker-controllable source (like `location.hash`) and writes it to a dangerous sink (`innerHTML`, `eval`) without the payload ever necessarily touching the server. "Black box" testing here means finding it purely by observing browser behavior, without source code access.
Key concepts
- Because the payload may never be sent to the server, traditional server-log-based detection completely misses DOM XSS — it has to be found by inspecting client-side behavior directly.
- Common sources: `location.hash`, `location.search`, `document.referrer`, `window.name`. Common sinks: `innerHTML`, `document.write`, `eval`.
- Testing approach: place a unique marker string into each source and use browser DevTools to search the live DOM (not "View Source", which shows only the original HTML) for where it ends up.
- Burp Suite's DOM Invader tooling automates a lot of this source-to-sink tracing for black-box testers.
Example
// Vulnerable pattern
element.innerHTML = new URLSearchParams(location.search).get("name");
// ?name=<img src=x onerror=alert(1)> would executeTry it yourself
On a lab DOM XSS challenge (PortSwigger has several), place a marker string into the URL fragment/query and use your browser's DevTools search to find where it lands in the live DOM.