Project

General

Profile

Actions

Defect #21136

closed

Issues API may disclose changeset messages that are not visible

Added by Jan from Planio www.plan.io about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Issues
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

The check to include related changesets in the single issue API view currently is done against the project of the issue.

An issue can have related changesets from other projects, where the current user might not have the permission to see changesets. This leads to changeset messages being leaked to users without the permission to see those.

The attached patch (created by Felix Schäfer) uses the changesets passed by the controller instead of reimplementing logic in the view, thus sharing the same logic as the html view.


Files

231789.patch (3.16 KB) 231789.patch Jan from Planio www.plan.io, 2015-11-02 22:43
Actions

Also available in: Atom PDF