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
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.
Nt me, them. I havent even as much as read d mod_rewrite killer posted
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..
for mod_rewrite.. i will create a new topic for it.. i will make a tutorial with a lava script as example.. you can all share too.. mod_rewrite is a very usefull tool really.
edit: its done: http://coding-talk.com/f19/simple-mod_rewrite-tutorial-4881-new/
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.
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.
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..
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.