Protected page content visible to curl before redirect

Created on 22 January 2023, almost 2 years ago
Updated 23 January 2023, almost 2 years ago

Hi,
Client flagged this one and I have confirmed.

The (potentially sensitive, hence the use of this module) content of the protected pages is plainly visible to curl before the 302 redirect kicks in.

Reproduce:

Action: Visit https://mydrupalsite/protected-url in browser
Result: 302 redirect occurs as normal (confirm in devtools), redirected to password input page

Action: Enter curl https://mydrupalsite/protected-url in terminal and inspect output
Result: Full page source of "protected" page clearly visible and accessible

🐛 Bug report
Status

Needs review

Version

1.4

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024