luceos
Chrome - NORMAL tab
Request URL: https://www.domain.tld/logout?token=p3Y7vthNCcgfoaq6fbSnLOt83TmcpwRGQwJ02SDx
Request Method: GET
Status Code: 200
Response Headers:
accept-ranges: bytes
age: 0
cache-control: max-age=0
content-encoding: gzip
content-length: 972
content-type: text/html; charset=utf-8
date: Wed, 05 Aug 2020 10:38:28 GMT
expires: Wed, 05 Aug 2020 10:38:28 GMT
server: Apache
set-cookie: flarum_session=L3VPHzh14bYI7LfL9zTuCnyvKR2kjd6EUhwJBHE8; Path=/; Expires=Wed, 05 Aug 2020 12:38:28 GMT; Max-Age=7200; Secure; HttpOnly
status: 200
strict-transport-security: max-age=15768000
vary: Accept-Encoding
x-csrf-token: rgFkZA8Wp5qXlkU83ReN9SIO1Zsb08vBnXUPHIU2
Chrome - Incognito - Tab
Request URL: https://www.domain.tld/logout?token=CkC3W7515QwJFWXwhRwvenypwsSf65sCLEJRNYWn
Request Method: GET
Status Code: 302
Remote Address: 77.244.243.24:443
Referrer Policy: no-referrer-when-downgrade
Response Header:
age: 0
cache-control: max-age=0
content-length: 0
content-type: text/html; charset=UTF-8
date: Wed, 05 Aug 2020 10:44:44 GMT
expires: Wed, 05 Aug 2020 10:44:44 GMT
location: https://www.domain.tld
server: Apache
set-cookie: flarum_remember=; Path=/; Expires=Wed, 05 Aug 2015 10:44:45 GMT; Secure; HttpOnly
set-cookie: flarum_session=ppqpKg69rAChT69rtaeYo1DNBvYvN8ChM8jWtly0; Path=/; Expires=Wed, 05 Aug 2020 12:44:45 GMT; Max-Age=7200; Secure; HttpOnly
status: 302
strict-transport-security: max-age=15768000
x-csrf-token: AQCz72aRFhDq7gF94MhzIZU9a9k3I1ZOtathChoC
As you can see, the buggy request gets an status code 200 and the right one a 302 with an redirect to the page
After take a closer look at LogOutController the problem is the CSRF token:
// If a valid CSRF token hasn't been provided, show a view which will
// allow the user to press a button to complete the log out process.