Premium Only Content

Web Security Academy ~ SQLi (Lab #2) ⚙️
If the query returns the details of a user, then the login is successful. Otherwise, it is rejected.
In this lab an attacker can log in as any user without a password simply by using the SQL comment sequence -- (double-dash) to remove the password check from the WHERE clause of the query.
By submitting the username administrator'-- the password results in the following query:
SELECT * FROM users WHERE username = 'administrator'--' AND password = ''
Ignoring the password field, because it comes after the comment sequence (double-dash)
This query returns the user whose username is administrator and successfully logs the attacker in as that user.
💙💙💙💙💙💙💙💙💙💙💙💙
FREE CYBER SECURITY LEARNING RESOURCES :
The Cyber Mentor --- https://academy.tcm-sec.com
Nathan House --- https://www.stationx.net
John Hammond --- https://johnhammond.org
Loi Liang --- https://loiliangyang.com
HackerSploit --- https://hackersploit.org
David Bombal --- https://davidbombal.com
Professor Messer --- https://www.professormesser.com
w3schools --- https://www.w3schools.com
#hacktolearn #websecurityacademy #sqli #commentsequence #doubledash
-
1:29:01
Sean Unpaved
3 hours agoTurf Tumbles & Triumphs: Burrow's Setback, Chiefs' Crumble, Irish Iced, & Kelly's 3-0
34.2K -
34:27
The Quiet Part
5 hours ago $0.21 earnedCanada DIDN'T EVEN TRY!
4.95K2 -
LIVE
SportsPicks
5 hours agoCrick's Corner: Episode 80
49 watching -
2:06:51
The Charlie Kirk Show
3 hours agoVice President JD Vance Remembers Charlie Kirk | Miller, Tucker, RFK Jr., Wiles, Leavitt | 9.15.25
1.39M1.21K -
LIVE
Major League Fishing
5 days agoLIVE! - Fishing Clash Team Series: Heritage Cup - Day 2
325 watching -
1:08:54
Simply Bitcoin
4 hours ago $0.82 earnedNEW REPORT SUGGESTS THE BITCOIN SUPPLY SHOCK IS ACCELERATING?! | EP 1332
21.2K1 -
10:31
Dr. Eric Berg
4 hours ago13 Foods You Should Never Buy Organic
79.2K20 -
15:10
SB Mowing
1 month agoShe had TEARS OF JOY on her face - An update on Beth
60.6K35 -
LIVE
Lofi Girl
3 years agolofi hip hop radio 📚 - beats to relax/study to
365 watching -
2:15:26
Nikko Ortiz
4 hours agoLIVE - Farm Animals Attack!
217K7