Ad End 1 August 2025
Ad Ends 13 July 2025
ad End 25 October 2025
Ad Ends 20 April 2025
Ad expire at 5 August 2024
banner Expire 9 June 2025
banner Expire 25 October 2025
banner Expire 10 May 2025
What's new
Wizard's shop 2.0
Money Club cc shop
banner Expire 15 January 2025
banner Expire 20 October 2024
UniCvv
Yale Lodge
Kfc CLub
adv exp at 30 July 2025
Carding.pw carding forum
BidenCash Shop

cookie sql injection

Mr.Smith

Well-known member
Joined
Jun 14, 2020
Messages
82
Reaction score
13
Points
107
Awards
1
  • First post
Hello In this tut will teach you how how to sql inject via cookie [also known as 'session based' or 'cookie parameter'].


until now,we know about two methods:
GET - via url
http://site.com/*.php?id=1union select ....
for example
404 Not Found
POST - via box
like this one
Not Found (in the search box).


and now,we gonna learn cookie.
lets strat:
first,you need google chrome.
https://www.google.com/chrome/index.html


after you have downloaded,download the addon "Cookie Editor" from Philip.
https://chrome.google.com/webstore/category/extensions?hl=en
click "+ ADD TO CHROME"


now after we downloaded chrome and cookie editor,lets strat for real-
get in vuln site.
for example-
http://www.caucusforamerica.com/opinion.art.php
not id=1 or search box. lets do it with cookie sqli.
click the cookie editor sign


and add ' to the value "sessID"
and hit sumbit.
error!


for advanced-
we can learn from the error:
-one n.o.columns
-mq off
-full path /home/americas/public_html/admin/
for beginners-
lets try finding n.o.columns (number of columns) with group by.
click the cookie editor sign and write
Code:
' group by 2--+
Spoiler (Click to View)
Unknown column '2' in 'group statement'
so
Code:
' union select 1 and 'a'='a
(the 'a'='a part is for closing a string)
NOTICE: we cant use union here cause the query get inside a "insert into" query..but union will work on other site.
you can use 'and' for extract data (' and (select 1 from table)--+)


hope you learned something
 
Ad End 1 February 2024
Top