Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
One of our Clients discovered that it is possible to bypass access restrictions and display files expected to be protected, when using short URL with /files/private/*, which is rewritten under the hood to /sites/domain/files/private/* but the access restrictions are set only for full path in the URI: /sites/domain/files/private/*.
Comments
Comment #1
omega8cc commentedThis patch is reported to fix the issue: http://drupalcode.org/sandbox/omega8cc/1111100.git/commit/1f15c8d
Comment #2
omega8cc commentedOne of our Clients discovered that it is possible to bypass access restrictions and display files expected to be protected, when using short URL with
/files/private/*, which is rewritten under the hood to/sites/domain/files/private/*but the access restrictions are set only for full path in the URI:/sites/domain/files/private/*.This commit fixes the issue: http://drupalcode.org/sandbox/omega8cc/1111100.git/commit/5a97243
Comment #3
anarcat commentedboth commits blindly cherry-picked to 1.x and 2.x.