Using $_SESSIONS/COOKIES? Maybe u shud read this first.

Started on the old forum in October 2009 · view the original in the archive · old links redirect here

49 replies · 2,572 views · started 17 years ago · 1 min read

TL;DR · summary of 49 replies
  • CSRF works when an attacker tricks a user into making a request that the victim trusts, containing their session/cookie id.
  • To protect against CSRF attacks, using $_SESSIONS or cookies is not sufficient; additional measures like checking for unique values in cookies and ensuring commands are visible client-side can help mitigate risks.

Written automatically from the replies by a language model on our own server. It can be wrong; the posts below are the source.

9 participants
ori Lead · 512 posts #41

what yous trying to get working thru mod rewrite ???

ori Lead · 512 posts #43

my mod rewrite codes hav nothing to do with cookies or sessions lol all i use is ip filter to send bad ips to google and a wildcard dns code

koizumi Developer · 81 posts #44

mobileGIGS wrote: Thats wer ur wrng, please answer... why wud i beta test a modified script? Hi5 and bebo ave almst same layouts n features does it make it d same codes? Hell, hw many functions wer built by d lava script? Did they copyright d names of the lil db functions too? Does using the idea of lava to make a site make it a mod? Doesnt byethost(which suck to run live sites) support htaccess? Will u shut up if i upload a screenshot of my scripts web n mobile version or will u say its a facebuk clone? Does addin twitter and fb api make it a lava mod?? Oh Please.

i dunno whats your point man. But i never said anything about your web script, which none of us here even heard/seen it off.. im talking about your mgbeta, how ever you dressed it, its a clear based on lava script.. the word there is "based", its not a copy a clone or any word that'll make your depressed.. lol.. but my point was clear, this topic is about security issues, not about boasting scripts.. and btw, in the first place, i was helping you out about the mod_rewrite because with killereyed post, it looks like your a newbie who doesnt know how to research, so i made a brief post, explaining to him thats its not like that..

CreativityKills Lead · 833 posts #46

Alright. But is lava prodigits "based" then. Anyway i found a way thru lava sites, whether sid is in url or php session cookie. Only drawback, its browser dependent 🙁 yo killer we cud run a test on ur site.

koizumi Developer · 81 posts #47

nope! prodi is tottaly different script,the engine itselft is on asp.. btw, wat was that browser dependant thingy?

koizumi Developer · 81 posts #49

mobileGIGS wrote: The hack i cooked up is written in CSRF + AJAX. AJAX only works on web browsers. Soo, the victim has to be using one. The screen shot i promised: http://coderrr.wen.ru/mgwebalpha-screenshot.JPG and http://coderrr.wen.ru/mgwebalpha-logged-screenshot.JPG thats all i can shoot for copyright reasons. And yes its AJAX driven bt works wit my mobile database.

now thats a good looking web version.. one thing ive noticed, your using phpssid or cookies which kinda contradict with the one your recommending in this topic..

CreativityKills Lead · 833 posts #50

Im nt saying DONT use it, im showin u a hole. All u have to do is block the hole lol. Which brings us to the 2nd part of my thread. I have written a class that automatically validates every post form in my page to avoid noob csrf and i use one i got 4rm github to do ajax csrf protectn. Search "php csrf helper" in github to get anyone. And ffs pls avoid GET requests. NOTE: if u hav an XSS hole, u myt as well nt bother downloading d csrf helper.

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close