Jump to content

Recommended Posts

This is used with sessions..

a cookie is created, or it can be passed via the URL

 

Basically its contains a random code something like this 'uj2oqg5agtejger46qq0jicpr6', now on the server theirs a file with the same code when your browser passes info to the server, the server can read the cookie and match it up to the correct file and from that it can get your session infomation..

 

to sum up.. its used to link your web browser to the sessions stored on the server..

 

any more questions or anything you don't understand?

Link to comment
https://forums.phpfreaks.com/topic/115196-solved-phpsessid/#findComment-592327
Share on other sites

XSS on a GET, humm.. well i guess someone could send a link via email that uses it, redirect to another site or deface the site or maybe even get their login details..

 

depends on the site and whats not filtered.. if PHPSESSID is not sanitized then i don't think thats a problem .. unless your displaying it..

Link to comment
https://forums.phpfreaks.com/topic/115196-solved-phpsessid/#findComment-592347
Share on other sites

If they are passing data for SQL queries via GET then an SQL injection could be done. Example:

$sql = SELECT * FROM users WHERE username='" . $_GET['username'] . "'";

Suppose i changed .php?username=myUsername to somthing like .php?username=INNER JOIN SELECT * FROM USERS

of course its going to be a bit harder, i hope, but you could expose alot of informtion.  Not to mention if its a windows server with mssql I know of a dozen or so current exploits that would allow me to gain access as administrator via rdc.

 

So there are alot of potential problems.  Consider what if that database I just queried contains Credit Card info... or worse.

Link to comment
https://forums.phpfreaks.com/topic/115196-solved-phpsessid/#findComment-592416
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.