プロジェクト

全般

プロフィール

Vote #73260

完了

Image pointing towards /logout signs out user

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Security_51
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
51
version_id:
60
issue_org_id:
13022
author_id:
4
assigned_to_id:
1
comments:
7
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
66
ステータス-->[Closed]

説明

Creating an image with the source url @/logout@ will automatically sign out any user.

Code

!/logout!

Test case (This will sign you out!)
See issue #13021

This can be annoying and should be prevented by only allowing POST request with a valid CSRF token in the @AccountController.logout@ method (source:trunk/app/controllers/account_controller.rb).


journals

Hi Marco,
first of all, thank you for your input and for making us aware of this.

I don't think that using a live system for demonstrating issues is neither a good idea nor good conduct.
I closed the referenced issue, but I'm not sure if deleting it wouldn't have been better...
--------------------------------------------------------------------------------
Hi Jan,

Sorry about being overly attention demanding. So, yeah sure, it is probably better to just delete the ticket.

I had actually reported this a two years ago to security(at)redmine.org, but it probably slipped through at some point. Anyway, it's just a minor annoyance, and not a real security issue.
--------------------------------------------------------------------------------
Maybe only respond to html format in login and logout actions?
--------------------------------------------------------------------------------
There's a security(at)redmine.org email address? Didn't know that...
--------------------------------------------------------------------------------
Etienne Massip wrote:
> Maybe only respond to html format in login and logout actions?

I've just tested this approach but it doesn't work. Using non-GET seems to be the right solution for preventing that.
--------------------------------------------------------------------------------
Fixed in r11289, POST is now required to logout. FTR, @GET /logout@ will still respond with a simple logout form for compatibility, disabled-javascript support.
--------------------------------------------------------------------------------
Jan Niggemann wrote:
> There's a security(at)redmine.org email address? Didn't know that...

That's what it says here: [[Submissions#Submitting-a-Security-Vulnerability]]

BTW: That was fixed quickly, Kudos!
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,13069,XSS with images

Admin Redmine さんが3年以上前に更新

  • カテゴリSecurity_51 にセット
  • 対象バージョン2.3.0_60 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0