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
-
18:38
The Illusion of Consensus
1 hour ago“Those are FIGHTING words” – Dave Smith SNAPS at Alex Over Holocaust Denial Accusations
-
55:40
The Rubin Report
2 hours agoCNN Host Goes Silent When Guest Proved She’d Done Her Homework on Drug Boat Facts
29.1K43 -
51:25
iCkEdMeL
2 hours ago $1.22 earnedCandace Owens BACKS OUT of TPUSA Debate — Tim Pool MELTS DOWN, Fuentes Calls Her Out
9.01K12 -
LIVE
The Mel K Show
2 hours agoMORNINGS WITH MEL K - Let it Bleed-Things are Getting Spicy in DC 12-5-25
944 watching -
LIVE
LFA TV
14 hours agoLIVE & BREAKING NEWS! | FRIDAY 12/05/25
2,742 watching -
1:44:31
Benny Johnson
3 hours agoThe Darkest Cover Up in FBI History: Explosive January 6th Pipe Bomber Evidence Revealed, They LIED…
50.8K51 -
59:56
VINCE
4 hours agoThe Boys At The Bureau Got The Bomber | Episode 182 - 12/05/25 VINCE
201K159 -
38:34
Rethinking the Dollar
2 hours agoRetail Silver FOMO Starting In Asia (What do they know?) | RTD News Update
22K2 -
1:36:52
Graham Allen
5 hours agoCandace Owens BACKS DOWN?! It’s Time To Burn All Of This Insanity To The Ground…..
162K825 -
2:00:56
Matt Kohrs
16 hours agoLive Day Trading, Breaking Market News & Payday Friday || The Matt Kohrs Show
32.5K5