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:11:22
The Rubin Report
3 hours agoWatch Joe Rogan’s Face as Elon Musk Exposes How Dems Are Cheating in Plain Sight
46.6K70 -
1:01:07
VINCE
5 hours agoThe Walls Are Closing In On The Deep State | Episode 160 - 11/03/25
218K148 -
LIVE
LFA TV
20 hours agoLIVE & BREAKING NEWS! | MONDAY 11/3/25
2,218 watching -
1:31:18
Graham Allen
6 hours agoErika Fights Back: Vows To EXPOSE TRUTH & DEMANDS Trial Goes Public!! Left Says Her Grief Is FAKE!
146K81 -
2:08:47
Badlands Media
10 hours agoBadlands Daily: November 3, 2025 – Tariff Wars, SNAP Panic & Brennan Gets Confronted
66.8K18 -
2:59:32
Wendy Bell Radio
9 hours agoThings Will Get Worse Before They Get Better
92.4K117 -
1:18:28
The Big Mig™
6 hours agoICE Will Use Private Bounty Hunters, LFG
37.6K13 -
1:08:17
Chad Prather
12 hours agoHow to Get Along With People You Don’t Even Like (Most of the Time)
126K36 -
1:45:29
MTNTOUGH Podcast w/ Dustin Diefenderfer
12 hours agoTaya + Colton Kyle: Can American Marriages Survive 2025? | MTNPOD #140
32.1K -
1:12:23
MikeMac - Say Something
20 hours agoSay Something Beyond W/MikeMac: JOKER - Ep.12
29.6K1