A Huge Security Risk To Your Website - Cross-Site Scripting (XSS) - Practical Example and Solutions

Laratips January 9, 2023
Video Thumbnail

About

Welcome to Laratips. Laravel related videos are mostly posted on this channel. If you love Laravel, you will love this channel :) This is the place where you will learn about web development from basic to advanced. We will level you up and make you a proficient developer. Most of the time the videos will be related to Laravel and Vuejs.

Video Description

Here, we will be looking at a huge security risk that Cross-Site Scripting (XSS) can cause to your website. We will be looking at what a hacker can do and how to solve it using 3 ways. Know more about Cross-Site Scripting: https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting === OFFER === GET 30% DISCOUNT ON ALL PLANS OF CLOUDWAYS HOSTING FOR 3 MONTHS https://unified.cloudways.com/signup?id=1029148&coupon=CW30FOR3 === Important Links === Fonts, extensions I use, and Support Laratips links: https://bit.ly/m/laratips === Video Related Links === JS Minifier: https://www.toptal.com/developers/javascript-minifier HTML purify package: https://github.com/stevebauman/purify Content Security Policy (CSP): https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/default-src https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/Sources 00:00 Intro 01:22 The mistake 02:10 The basic exploitation 03:27 Solution 1 04:12 The bigger exploitation 08:18 Solution 2 11:59 Solution 3 18:14 Thank you === Other Videos === What's New In Laravel 9 https://youtu.be/qAzrZUG_9Z0 New In Laravel Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu4UVWrcxlvVkMiI0SeS2OZ Laravel Package Development Playlist https://www.youtube.com/playlist?list=PL2DahmvUpeuu8HkpbNT-cKernolVdqZq_ Password Validation In Laravel with at least one Letters, Numbers, Upper and Lowercase or Symbols: https://youtu.be/f-g3P9imPZs Multiple Apis With ForwardsCalls Trait And Code Refactoring Tip - Laravel Hidden Feature: https://youtu.be/vzgNm86ezWE Laravel Chunking - You Might Be Doing This Wrong - Problem and Solution: https://youtu.be/aQCHmB4Uh0Q Laravel Tip - Properly Get Data Between Two Dates https://youtu.be/bJkEBTg1NGA Get Data From Multiple Databases In One Project | Laravel Tip https://youtu.be/KJAXLf78QPs === Attribution === Boy waving hand Video by VideoPlasty .com (https://pixabay.com/users/videoplasty-19751245/?utm_source=link-attribution&utm_medium=referral&utm_campaign=video&utm_content=80696) from Pixabay Thumbnail Photo by Tima Miroshnichenko: https://www.pexels.com/photo/person-in-black-hoodie-sitting-on-chair-5380621 #laravel #php #laraveltip #laratips

You May Also Like

Essential Survival Shelter Gear

AI-recommended products based on this video

Loading...
Swiss Outdoors Rain Fly Tarp | Waterproof Tent Shelter Canopy | Lightweight Easy Setup for Hammock, Backpacking or Camp Gear | Premium Quality 12 x 9 ft |, Green Army

Swiss Outdoors Rain Fly Tarp | Waterproof Tent Shelter Canopy | Lightweight Easy Setup for Hammock, Backpacking or Camp Gear | Premium Quality 12 x 9 ft |, Green Army

(66)
$46.62
FREE delivery Thu, Jun 19
Loading...
Carport 10x20ft Heavy Duty Carport Features Roll-up Windows & Doors, Portable Garage with UV Resistant Waterproof All-Season Tarp for Car, Truck, Boat

Carport 10x20ft Heavy Duty Carport Features Roll-up Windows & Doors, Portable Garage with UV Resistant Waterproof All-Season Tarp for Car, Truck, Boat

(5)
$499.97
FREE delivery Jun 13 - 18
Loading...
100 ft Expandable Garden Hose - 2025 Upgraded Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose
Best Seller

100 ft Expandable Garden Hose - 2025 Upgraded Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose

(249)
$46.79
FREE delivery Fri, Aug 8
2K+ bought in past month
Loading...
100 FT Garden Hose – 2025 Upgarded Expandable Garden Hose w/10 Pattern Spray Nozzle, 650psi Pure Brass 3/4” Fittings – Lightweight, Durable, and Kink-Free, Retractable Water Hoses for Gardening(Black)

100 FT Garden Hose – 2025 Upgarded Expandable Garden Hose w/10 Pattern Spray Nozzle, 650psi Pure Brass 3/4” Fittings – Lightweight, Durable, and Kink-Free, Retractable Water Hoses for Gardening(Black)

(51)
$45.95
FREE delivery Mon, Jun 23
2K+ bought in past month
Loading...
100 ft Expandable Garden Hose - All New 2025 Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose

100 ft Expandable Garden Hose - All New 2025 Retractable Water Hose with 3/4" Solid Brass Fittings, Extra Strength Fabric - Flexible Expanding Hose

(148)
$51.99
FREE delivery Sat, Jun 21
3K+ bought in past month
Loading...
Waterdrop Gravity Water Filter Straw, Camping Water Filtration System, Water Purifier Survival for Travel, Backpacking and Emergency Preparedness, 1.5 gal Bag, 0.1 Micron, 5 Stage Filtration

Waterdrop Gravity Water Filter Straw, Camping Water Filtration System, Water Purifier Survival for Travel, Backpacking and Emergency Preparedness, 1.5 gal Bag, 0.1 Micron, 5 Stage Filtration

(3,813)
$50.99
PrimeFREE delivery Sat, Jun 14
600+ bought in past month
Loading...
1/2 Piece Camping Stove, Compact Stove 23.5x13x25cm, Travel Friendly Propane Stove | Lightweight Outdoor Propane Kitchen Equipment, Portable Cassette Stove for Hiking

1/2 Piece Camping Stove, Compact Stove 23.5x13x25cm, Travel Friendly Propane Stove | Lightweight Outdoor Propane Kitchen Equipment, Portable Cassette Stove for Hiking

(0)
$157.69
FREE delivery Aug 27 - Sep 17
Loading...
ROCKTOL Multitool,19 in 1 Multitool Pliers with Titanium-Plated Handle Safety Locking Lightweight EDC Tool Nylon Sheath for Gifts,Men,Outdoor Survival,Hiking,Camping

ROCKTOL Multitool,19 in 1 Multitool Pliers with Titanium-Plated Handle Safety Locking Lightweight EDC Tool Nylon Sheath for Gifts,Men,Outdoor Survival,Hiking,Camping

(374)
$46.99
FREE delivery Thu, Jun 19
50+ bought in past month
Loading...
Fathers Day Dad Gift Idea,16-in-1 EDC Multi Tool with Pocket Knife, Foldable Utility Knife Multitool with Safety Locking, Needle Nose Pliers and Wire Stripper Tools, Gifts for Dad, Fishing, Camping

Fathers Day Dad Gift Idea,16-in-1 EDC Multi Tool with Pocket Knife, Foldable Utility Knife Multitool with Safety Locking, Needle Nose Pliers and Wire Stripper Tools, Gifts for Dad, Fishing, Camping

(3)
$49.99
FREE delivery Thu, Jun 19
Loading...
HONZIN Multitool Pliers 16 in 1 Multitool Pocket Knife with Nylon Sheath Black Multi Tool for Camping Outdoor Survival

HONZIN Multitool Pliers 16 in 1 Multitool Pocket Knife with Nylon Sheath Black Multi Tool for Camping Outdoor Survival

(2,440)
$22.99
FREE delivery Thu, Jun 19 on your first order
50+ bought in past month
Loading...
BIBURY Multitool Pliers BI2038B, 22-in-1 Stainless Steel Multi Tool with Flint, Window Breaker, Scissors, Back Clip, Folding Pocket Multifunctional Self-locking EDC Tool for Survival Camping Hiking

BIBURY Multitool Pliers BI2038B, 22-in-1 Stainless Steel Multi Tool with Flint, Window Breaker, Scissors, Back Clip, Folding Pocket Multifunctional Self-locking EDC Tool for Survival Camping Hiking

(1,240)
$55.99
FREE delivery Thu, Jun 19
Loading...
DRQ Unisex LED Beanie Hat with Light, 4 LED USB Rechargeable Headlamp Winter Warm Knitted Cap, Hands Free LED Lighted Battery Powered Headlamp Hat for Hiking, Biking, Camping,Walking,Running (2 Pack)

DRQ Unisex LED Beanie Hat with Light, 4 LED USB Rechargeable Headlamp Winter Warm Knitted Cap, Hands Free LED Lighted Battery Powered Headlamp Hat for Hiking, Biking, Camping,Walking,Running (2 Pack)

(66)
$18.89
FREE delivery Sat, Jun 14 on your first order
Loading...
Waterdrop Gravity Water Filter Straw, Camping Water Filtration System, Water Purifier Survival for Travel, Backpacking and Emergency Preparedness, 1.5 gal Bag, 0.1 Micron, 5 Stage Filtration

Waterdrop Gravity Water Filter Straw, Camping Water Filtration System, Water Purifier Survival for Travel, Backpacking and Emergency Preparedness, 1.5 gal Bag, 0.1 Micron, 5 Stage Filtration

(3,813)
$50.99
PrimeFREE delivery Sat, Jun 14
600+ bought in past month