$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>Auth cookie value security risk?|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

Auth cookie value security risk?

matteradmin9PV0评论

A short question this time:

How much of a security risk is it when an third party gets access to WordPress auth cookie?

Can they for example simply copy the cookie and "be" logged in as the user who was the original cookie owner?

I ask this because i'm planning on passing the auth cookie value between different servers.

A short question this time:

How much of a security risk is it when an third party gets access to WordPress auth cookie?

Can they for example simply copy the cookie and "be" logged in as the user who was the original cookie owner?

I ask this because i'm planning on passing the auth cookie value between different servers.

Share Improve this question asked Feb 11, 2019 at 16:43 Tinus TateTinus Tate 1135 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 2

Can they for example simply copy the cookie and "be" logged in as the user who was the original cookie owner?

Yes! with the cookie they basically have your login session. You do not want 3rd parties to get the cookie. Keep in mind there is more than 1 cookie, for frontend and for backend.

I ask this because i'm planning on passing the auth cookie value between different servers.

I would advise against sending the actual cookie across servers. This sounds like an XY problem question, where instead of asking how to solve problem X, you asked how to implement or fix solution Y. There are better ways to handle users across multiple servers ( some of which are a part of how cookies work ), but it would depend on what you're doing that necessitates this, you'd need to ask a new question ( possibly on another stack )

Articles related to this article

Post a comment

comment list (0)

  1. No comments so far