ppfeufer / allianceauth-afat

Another Fleet Activity Tracking tool for Alliance Auth
GNU General Public License v3.0
0 stars 5 forks source link

Lack of Authorization check when requesting recent FatLinks #337

Closed skyfire100 closed 3 months ago

skyfire100 commented 3 months ago

Bug Description

It appears the get-recent-fats-by-character endpoint has no check that you are authorized to view a characters Fat Links. As long as you are logged in, you can view any characters Fat links by supplying their EVE character id in the URL

Steps to Reproduce

Steps to reproduce the behavior:

  1. Log into AllianceAuth.
  2. Navigate to www.example.com/fleet-activity-tracking/ajax/dashboard/get-recent-fats-by-character/{not-your-character-id} Replace {not-your-character-id} with a character ID your account is not authorized to view & replace www.example.com with your local instance of alliance auth.
  3. See the returned JSON

Expected behavior

You should not be able to see FatLinks for characters you are not authorized to view.

Please complete the following information: