Lucene search

K
huntrB1tch3s42F38A84-8954-484D-B5FF-706CA0918194
HistoryApr 05, 2023 - 10:55 a.m.

Attached files under salaries module can be harvested by unauthenticated users

2023-04-0510:55:56
b1tch3s
www.huntr.dev
9
file attachment security
unauthenticated access
confidential information disclosure
automated enumeration
burp intruder
information harvesting
predictable filename
path traversal

0.001 Low

EPSS

Percentile

44.8%

Description

File attachment under salaries module can be downloaded and viewed by anyone without authentication by just knowing the full path (/assets/FileUploads/2022/staff_2/*) and the predictable filename (contains date (YYYY-MM-DD) and a random 6 digit number which can be easily enumerated by automated tool using list of all possible 6 digit combinations). File attachment under salaries module may contain confidential salary information and other sensitive data of the intended owner.

Example: http://X.X.X.X/assets/FileUploads/2022/staff_2/payslip_2023-04-05_021223.jpg

Replication

  1. Send the above endpoint to burp intruder.
  2. Position the payload to the last 6 digit number,
    example: GET /rosariosis/assets/FileUploads/2022/staff_2/payslip_2023-04-05_ยง021223ยง.jpg
  3. Add your payload list containing all possible 6 digit combinations.
  4. Start the attack and all requests that returns 200 status can be harvest.
    Note: you can also configure to add the filename date (YYYY-MM-DD) for enumeration.

0.001 Low

EPSS

Percentile

44.8%

Related for 42F38A84-8954-484D-B5FF-706CA0918194