English 中文(简体)
phpsessid - 是否值得将会议名称改为某位shed和访问者。
原标题:phpsessid - Is it worth changing the session name to something hashed and visitor specific

I m wondering whether for security purposes it would be worth using the session_name() function to rename the default phpsessid to a hashed or encrypted id?

If so, what would be the best way to implement it??

感谢

最佳回答

网上对此做了大量书面说明,先前在StackExchange上读过的问题。 本届会议的加密——仅仅制造了另一个易于被劫持的随机编号。

如果您想到这一点,如果您对某届会议进行加密,你要么把会议重新召集到新的会议(在这种情况下,你没有取得任何成就),要么你将使用加密/加密功能。

如果你使用后一种方法,如果有人持有另一用户的加密会议设计书,就会被您的描述加密,并且仍然允许使用。

In short, there is very little point and no real utility in further encrypting your session_id above and beyond the random number it is assigned.

问题回答

Rename PHPSESSID to another name, say MYNEWNAME, because anybody with little idea about PHP knows that HTTP server doesn’t maintain state and can only keep track of users using PHPSESSID. The PHPSESSID is stored in the clients cookie so I don t consider it as secure. Someone might bruteforce it and perform some action (like a Facebook status post) whenever a session was successfully hijacked. Read more on https://codereview.stackexchange.com/questions/75310/protect-from-people-bruteforcing-the-phpsessid





相关问题
Signed executables under Linux

For security reasons, it is desirable to check the integrity of code before execution, avoiding tampered software by an attacker. So, my question is How to sign executable code and run only trusted ...

MALICIOUS_CODE EI_EXPOSE_REP Medium

I run findbugs against all of my code and only tackle the top stuff. I finally got the top stuff resolved and now am looking at the details. I have a simple entity, say a user: public class User ...

XSS on jsbin.com

Anyone know if jsbin.com implements any protection for XSS or other javascript attacks? I see jsbin links used fairly regularly on sites like this one and I can t find any indication from the site ...

Make md5 strong

Im making a website that will intergrate with game that only support md5 hashing metod (atm). Which ofc is not especially safe anymore. But how could i make it stronger? Should I just generate long ...

Why running a service as Local System is bad on windows?

I am trying to find out the difference between difference service account types. I tumbled upon this question. The answer was because it has powerful access to local resources, and Network Service ...

Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

热门标签