Index: content/browser/frame_host/render_frame_host_impl.cc |
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc |
index 92a8c11c374584ce03e144ac3417fb853aefba28..7e28d332730e878e86e9e13aa5603db59d315a56 100644 |
--- a/content/browser/frame_host/render_frame_host_impl.cc |
+++ b/content/browser/frame_host/render_frame_host_impl.cc |
@@ -1238,6 +1238,12 @@ void RenderFrameHostImpl::OnFrameFocused() { |
void RenderFrameHostImpl::OnOpenURL(const FrameHostMsg_OpenURL_Params& params) { |
GURL validated_url(params.url); |
GetProcess()->FilterURL(false, &validated_url); |
+ if (!ChildProcessSecurityPolicyImpl::GetInstance()->CanReadRequestBody( |
+ GetSiteInstance(), params.resource_request_body)) { |
+ bad_message::ReceivedBadMessage(GetProcess(), |
+ bad_message::RFH_ILLEGAL_UPLOAD_PARAMS); |
+ return; |
+ } |
if (params.is_history_navigation_in_new_child) { |
// Try to find a FrameNavigationEntry that matches this frame instead, based |