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
-
LIVE
FRENCHY4185
5 hours agoFRENCHY'S BIRTHDAY BASH !!! THE BIG 40 !!!
402 watching -
1:23:33
Michael Franzese
13 hours agoThings to look forward to in 2025
67.7K34 -
3:23:02
I_Came_With_Fire_Podcast
14 hours agoDefeating VICTIMHOOD: Advocacy, Resiliency, and Overcoming Abuse
81.8K15 -
2:00:56
Game On!
21 hours ago $9.89 earnedNFL Experts debate if Joe Burrow will make HISTORY in Week 18!
103K12 -
2:07:57
InfiniteWaters(DivingDeep)
4 days agoHOW TO ENTER 2025 LIKE A BOSS!
35.4K1 -
15:43
Tactical Advisor
7 hours agoBEST and WORST Guns Of 2024
26.3K7 -
9:14
Dermatologist Dr. Dustin Portela
7 hours ago $0.90 earnedProducts a Dermatologist Actually Uses
24.2K10 -
20:54
inspirePlay
8 hours ago $3.88 earned🏌️♀️ Extreme Knockout Golf Challenge Part 2 – Do the GIRLS beat the BOYS? 🏌️
46.5K2 -
24:09
Squaring The Circle, A Randall Carlson Podcast
8 hours ago#033 At The Crossroads - Squaring the Circle: A Randall Carlson Podcast
30.9K12 -
50:17
BIG NEM
5 days agoBrian Herzog: From Zero to 150 MILLION Views in a Year 🚀
21K2