Skip to content

redirect: escape the URL being redirected to. - #106

Open
emikulic wants to merge 1 commit into
masterfrom
redirect
Open

redirect: escape the URL being redirected to.#106
emikulic wants to merge 1 commit into
masterfrom
redirect

Conversation

@emikulic

Copy link
Copy Markdown
Owner
  • Make all callers of redirect() encode the URL.
  • Make redirect() HTML-escape it in the HTML reply.

Otherwise, when using darkhttpd in one of the --forward-* modes, an attacker could inject headers and/or HTML into the redirect response.

Reported by @TristanInSec

- Make all callers of redirect() encode the URL.
- Make redirect() HTML-escape it in the HTML reply.

Otherwise, when using darkhttpd in one of the --forward-* modes, an attacker
could inject headers and/or HTML into the redirect response.

Reported by @TristanInSec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant