-
Notifications
You must be signed in to change notification settings - Fork 192
Make the HTTP Challenge require a response MIME type #470
Comments
FYI this was my talk, but the ACME/XSS thing wasn't from me, I just mention it, original source is: |
What MIME type should be used? I guess not I guess |
@annevk Would it be sufficient to require an existing media type here (probably |
Per https://mimesniff.spec.whatwg.org/#interpreting-the-resource-metadata (Semantically you'd expect this kind of thing to have its own MIME type, but I'll leave that for someone else to argue for.) |
@annevk - In light of the late stage in the process, I've tried to address this in a minimally-invasive way. As I noted in that PR, there's still some risk that there's overlap between the ACME key authorization syntax and something else, but this seems much less risky than the status quo. If we want to make more major changes, it would be better just to start up a new HTTP challenge type. |
That helps and it seems a test suite can test it which is good. (Any reason the "shoulds" are lowercase?) I think it violates HTTP to not include a |
* Minor fixes in responses to pre-RFC-Editor review with EKR * Fix broken links * More prohibitions on key reuse * Upgrade some SHOULDs to MUSTs * Compromise text * Softens nonce scoping language and focuses on interop * Clarifies account key reuse responsibilities * Address XSS risk from #470 * Whitespace commit to re-trigger CI * Remove outdated text * Remove extra line breaks * Fix reference error * Further clarification on nonce scoping * One more clarification * #ObviouslyNotObviously
Otherwise this can lead to an XSS endpoint on naïve server implementations. Validating the MIME type of the response seems like good practice and ensures the response cannot be used for other purposes.
https://www.youtube.com/watch?v=dBJt3eR8-bg outlines this at the beginning (should take a couple minutes max).
The text was updated successfully, but these errors were encountered: