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

12.5.3 grammatical error #1206

Closed
jmanico opened this issue Feb 2, 2022 · 7 comments · Fixed by #1458
Closed

12.5.3 grammatical error #1206

jmanico opened this issue Feb 2, 2022 · 7 comments · Fixed by #1458
Labels
6) PR awaiting review owasp_class_hel _5.0 - prep This needs to be addressed to prepare 5.0

Comments

@jmanico
Copy link
Member

jmanico commented Feb 2, 2022

12.5.3 [MODIFIED, MOVED FROM 12.3.4] Verify that the application validates or ignores user-submitted filenames, including in a JSON, JSONP, or URL parameter. The response Content-Type header and Content-Disposition header should be fixed to the file and securely handled by the application instead of the user.
@elarlang elarlang mentioned this issue Feb 2, 2022
@tghosth tghosth assigned tghosth and unassigned jmanico Dec 7, 2022
@tghosth tghosth added 5) awaiting PR A proposal hs been accepted and reviewed and we are now waiting for a PR _5.0 - prep This needs to be addressed to prepare 5.0 labels Dec 7, 2022
@tghosth
Copy link
Collaborator

tghosth commented Dec 7, 2022

@set-reminder 3 weeks look at this

@octo-reminder
Copy link

octo-reminder bot commented Dec 7, 2022

Reminder
Wednesday, December 28, 2022 12:00 AM (GMT+01:00)

look at this

@tghosth
Copy link
Collaborator

tghosth commented Dec 20, 2022

Based on w3c/webappsec-post-spectre-webdev@f1728a1 and w3c/webappsec-post-spectre-webdev#1 and #1004 and #721 and #1008, I don't think Reflected File Download is a relevant attack any more.

As such, I want to streamline this requirement to be more specific.

@tghosth
Copy link
Collaborator

tghosth commented Dec 20, 2022

Created #1458

@tghosth tghosth removed their assignment Dec 20, 2022
@tghosth tghosth added 6) PR awaiting review and removed 5) awaiting PR A proposal hs been accepted and reviewed and we are now waiting for a PR labels Dec 20, 2022
@elarlang
Copy link
Collaborator

From proposal 02573dd

# Description L1 L2 L3 CWE
12.5.3 [MODIFIED, SPLIT FROM 12.3.4] Verify that the application validates or ignores user-submitted filenames, including in a JSON, JSONP, or URL parameter and specifies a filename in the Content-Disposition header in the response. 641
12.5.4 [MODIFIED, SPLIT FROM 12.3.4] Verify that the Content-Type header is set to the appropriate type for the file being downloaded. 430

I think proposed 12.5.4 is duplicating current 14.4.1:

# Description L1 L2 L3 CWE
14.4.1 Verify that every HTTP response contains a Content-Type header. Also specify a safe character set (e.g., UTF-8, ISO-8859-1) if the content types are text/*, /+xml and application/xml. Content must match with the provided Content-Type header. 173

And actually, how relevant the Content-Type header value is for downloaded file? Downloaded file is opened in local operation system based on file extension I guess.

Current 12.5.3 potentially overlaps a bit with #1390

@tghosth
Copy link
Collaborator

tghosth commented Dec 20, 2022

#1390 should maybe be a new requirement in 12.5.x

Having read this I am still undecided about what the content type should be.

I am however inclined to skip 12.5.4 and rely on 14.4.1 which I agree kinda already covers it.

What do you think?

@octo-reminder
Copy link

octo-reminder bot commented Dec 27, 2022

🔔 @tghosth

look at this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6) PR awaiting review owasp_class_hel _5.0 - prep This needs to be addressed to prepare 5.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants