mirror of
				https://github.com/HackTricks-wiki/hacktricks.git
				synced 2025-10-10 18:36:50 +00:00 
			
		
		
		
	csp in electron
This commit is contained in:
		
							parent
							
								
									ef3469e987
								
							
						
					
					
						commit
						1ab4e70463
					
				| @ -396,6 +396,19 @@ This function whows the given file in a file manager, which **could automaticall | |||||||
| 
 | 
 | ||||||
| For more information check [https://blog.doyensec.com/2021/02/16/electron-apis-misuse.html](https://blog.doyensec.com/2021/02/16/electron-apis-misuse.html) | For more information check [https://blog.doyensec.com/2021/02/16/electron-apis-misuse.html](https://blog.doyensec.com/2021/02/16/electron-apis-misuse.html) | ||||||
| 
 | 
 | ||||||
|  | ## Content Security Policy | ||||||
|  | 
 | ||||||
|  | Electron apps should have a **Content Security Policy (CSP)** to **prevent XSS attacks**. The **CSP** is a **security standard** that helps **prevent** the **execution** of **untrusted code** in the browser. | ||||||
|  | 
 | ||||||
|  | It's usually **configured** in the **`main.js`** file or in the **`index.html`** template with the CSP inside a **meta tag**. | ||||||
|  | 
 | ||||||
|  | For more information check: | ||||||
|  | 
 | ||||||
|  | {{#ref}} | ||||||
|  | pentesting-web/content-security-policy-csp-bypass/ | ||||||
|  | {{#endref}} | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
| ## **Tools** | ## **Tools** | ||||||
| 
 | 
 | ||||||
| - [**Electronegativity**](https://github.com/doyensec/electronegativity) is a tool to identify misconfigurations and security anti-patterns in Electron-based applications. | - [**Electronegativity**](https://github.com/doyensec/electronegativity) is a tool to identify misconfigurations and security anti-patterns in Electron-based applications. | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user