Skip to content

Add nonce to the logout link #3170

@ozh

Description

@ozh

The logout link doesn't check for a nonce, see:

case 'logout':
// unused for the moment
yourls_logout();
break;

A mean hax0r can trick a naive user into logging out themselves if they're redirected to http://their-your.ls/admin/index.php?action=logout.

Definitely not a big deal, but also trivial to fix.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions