The Wayback Machine - https://web.archive.org/web/20201107151057/https://github.com/expressjs/express/pull/4120
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples: defend from privilege elevation #4120

Open
wants to merge 1 commit into
base: master
from

Conversation

@KoyamaSohei
Copy link
Contributor

@KoyamaSohei KoyamaSohei commented Dec 10, 2019

@KoyamaSohei KoyamaSohei force-pushed the KoyamaSohei:patch-3 branch from 617dcdd to 32b8cf0 Dec 13, 2019
@KoyamaSohei KoyamaSohei changed the title examples: defend privilege elevation examples: defend from privilege elevation Dec 13, 2019
@dougwilson dougwilson self-assigned this Mar 25, 2020
dougwilson added a commit to KoyamaSohei/express that referenced this pull request Mar 25, 2020
@dougwilson dougwilson force-pushed the KoyamaSohei:patch-3 branch from 32b8cf0 to 8c84a59 Mar 25, 2020
@dougwilson dougwilson force-pushed the KoyamaSohei:patch-3 branch from 8c84a59 to 9af857e Mar 25, 2020
@dougwilson
Copy link
Member

@dougwilson dougwilson commented Jun 3, 2020

So I noticed the fix for this was to switch from res.download to attachment + sendFile. That does indeed work, but I think it exposes that the res.download API doesn't actually make it easy to use it i. This way, which I think we should actually improve/fix in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
2 participants
You can’t perform that action at this time.