In this video I'll show you a XSS attack and how you can protect your applications.
Cross-Site Scripting (XSS) attacks are a type of injection, in which malicious scripts are injected into otherwise benign and trusted websites. XSS attacks occur when an attacker uses a web application to send malicious code, generally in the form of a browser side script, to a different end user. Flaws that allow these attacks to succeed are quite widespread and occur anywhere a web application uses input from a user within the output it generates without validating or encoding it.
An attacker can use XSS to send a malicious script to an unsuspecting user. The end user’s browser has no way to know that the script should not be trusted, and will execute the script. Because it thinks the script came from a trusted source, the malicious script can access any cookies, session tokens, or other sensitive information retained by the browser and used with that site. These scripts can even rewrite the content of the HTML page.
A one-time password (OTP), also known as a one-time PIN or dynamic password, is a password that is valid for only one login session or transaction, on a computer system or other digital device. OTPs avoid several shortcomings that are associated with traditional (static) password-based authentication; a number of implementations also incorporate two-factor authentication by ensuring that the one-time password requires access to something a person has (such as a small keyring fob device with the OTP calculator built into it, or a smartcard or specific cellphone) as well as something a person knows (such as a PIN).
-------------
NPM Package: https://www.npmjs.com/package/@bmvant...
GitHub repositories:
Application: https://github.com/bmvantunes/youtube...
NPM Attacker (Dropdown) Package: https://github.com/bmvantunes/youtube...
Attackers Server: https://github.com/bmvantunes/youtube...
Important Content Security Policy URLs:
https://developer.mozilla.org/en-US/d...
https://developer.mozilla.org/en-US/d...
https://content-security-policy.com/
Important XSS URLs:
https://owasp.org/www-community/attac...
https://cheatsheetseries.owasp.org/ch...
https://developer.mozilla.org/en-US/d...
-------------
Timeline
00:00 Introduction
00:49 Example 1 - The example you see everywhere
03:06 Example 2 - Npm Package "attack"
07:43 Content Security Policy (CSP)
09:24 Our application with Content Security Policy (CSP)
11:15 One-time password (OTP) and One-time code (OTC)
#security #xss #react
-------------
Follow me on:
Twitter: / bmvantunes
Dev.to: https://dev.to/bmvantunes
Website: https://brunoantunes.net
GitHub: https://github.com/bmvantunes
LinkedIn: / bmvantunes
Смотрите видео XSS Attack - Is your Application Vulnerable? + how to defend онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Bruno Antunes 07 Июнь 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,531 раз и оно понравилось 203 людям.