Project

General

Profile

Actions

Bug #23226

closed

Path traversal in relayd shared-folder HEAD call

Bug #23226: Path traversal in relayd shared-folder HEAD call

Added by Alexis Mousset over 3 years ago. Updated 6 days ago.

Status:
Released
Priority:
N/A
Category:
Security
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
Checked
Regression:
No

Description

It is possible to test for existence and compare hash of the file content to a hash for any file by using encoded ../ (%2e%2e%2f) in the file path.

curl --head -v "http://127.0.0.1:3030/rudder/relay-api/1/shared-folder/%2e%2e%2fplace" 

Note that it does not disclose the content (the GET endpoint is protected) and only works on files accessible by relayd, and requires to run locally or from on the the managed nodes.


Related issues 1 (0 open — 1 closed)

Related to Rudder - Bug #23392: Allow underscore in file_id in shared-filesReleasedNicolas CHARLESActions

Updated by Alexis Mousset over 3 years ago Actions #1

  • Description updated (diff)

Updated by Alexis Mousset over 3 years ago Actions #2

  • Description updated (diff)

Updated by Alexis Mousset over 3 years ago Actions #3

  • Status changed from New to In progress
  • Assignee set to Alexis Mousset

Updated by Alexis Mousset over 3 years ago Actions #4

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis Mousset to Félix DALLIDET
  • Pull Request set to https://github.com/Normation/rudder/pull/4956

Updated by Alexis Mousset over 3 years ago Actions #5

  • Target version changed from 7.3.5 to 7.2.10

Updated by Alexis Mousset over 3 years ago Actions #6

  • Status changed from Pending technical review to In progress
  • Assignee changed from Félix DALLIDET to Alexis Mousset

Updated by Alexis Mousset over 3 years ago Actions #7

  • Status changed from In progress to Pending release

Updated by Alexis Mousset over 3 years ago Actions #8

  • Fix check changed from To do to Checked

Updated by Alexis Mousset about 3 years ago Actions #9

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 7.2.10 and 7.3.5 which were released today.

Updated by Alexis Mousset about 3 years ago Actions #10

  • Related to Bug #23392: Allow underscore in file_id in shared-files added

Updated by Alexis Mousset 6 days ago Actions #11

  • Private changed from Yes to No
Actions

Also available in: PDF Atom