You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove dead ad-proxy URL rewriting from Prebid parse_response (#531)
* Use local request info for Prebid response URL rewriting
Store RequestInfo from the original client request on the provider
during request_bids and use it in parse_response for URL rewriting.
Previously, host and scheme were read back from the upstream Prebid
Server response body, allowing a compromised or misconfigured bidder
to inject arbitrary values into ad markup URL rewrites.
The request_host and request_scheme fields are still sent to Prebid
Server in the TrustedServerExt for the signing protocol, but the
response-side values are no longer trusted for rewriting.
Closes#417
* Remove dead ad-proxy URL rewriting from Prebid parse_response
The transform_prebid_response, rewrite_ad_markup, and
make_first_party_proxy_url functions generated /ad-proxy/ URLs whose
route handler was removed in 25084ba (NextJS with Prebid Integration).
The downstream creative::rewrite_creative_html already rewrites all
creative URLs to /first-party/proxy, making the Prebid-level rewriting
both dead and harmful (it produced double-rewritten URLs pointing to a
non-existent endpoint).
Removing this dead code also eliminates the security issue where
request_host and request_scheme were read from the upstream Prebid
Server response body (#417) — there is simply no response-side URL
rewriting left to trust or distrust.
Closes#417
---------
Co-authored-by: Aram Grigoryan <132480+aram356@users.noreply.github.com>
0 commit comments