⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280836 in webkit


Ignore:
Timestamp:
Aug 10, 2021, 2:29:58 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r274153 - [IPC Hardening] Protect WebPageProxy::willSubmitForm() against bad Strings
https://bugs.webkit.org/show_bug.cgi?id=222955
<rdar://problem/75195062>

Reviewed by Anders Carlsson.

The Strings passed in textFieldValues are used as keys in a HashMap later on so we need
to validate them.

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::willSubmitForm):

Location:
releases/WebKitGTK/webkit-2.32/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebKit/ChangeLog

    r280831 r280836  
     12021-03-09  Chris Dumez  <cdumez@apple.com>
     2
     3        [IPC Hardening] Protect WebPageProxy::willSubmitForm() against bad Strings
     4        https://bugs.webkit.org/show_bug.cgi?id=222955
     5        <rdar://problem/75195062>
     6
     7        Reviewed by Anders Carlsson.
     8
     9        The Strings passed in textFieldValues are used as keys in a HashMap later on so we need
     10        to validate them.
     11
     12        * UIProcess/WebPageProxy.cpp:
     13        (WebKit::WebPageProxy::willSubmitForm):
     14
    1152021-03-05  Chris Dumez  <cdumez@apple.com>
    216
  • releases/WebKitGTK/webkit-2.32/Source/WebKit/UIProcess/WebPageProxy.cpp

    r280831 r280836  
    3232#include "APIContentWorld.h"
    3333#include "APIContextMenuClient.h"
     34#include "APIDictionary.h"
    3435#include "APIFindClient.h"
    3536#include "APIFindMatchesClient.h"
     
    54465447    MESSAGE_CHECK(m_process, sourceFrame);
    54475448
     5449    for (auto& pair : textFieldValues)
     5450        MESSAGE_CHECK(m_process, API::Dictionary::MapType::isValidKey(pair.first));
     5451
    54485452    m_formClient->willSubmitForm(*this, *frame, *sourceFrame, textFieldValues, m_process->transformHandlesToObjects(userData.object()).get(), [this, protectedThis = makeRef(*this), frameID, listenerID]() {
    54495453        send(Messages::WebPage::ContinueWillSubmitForm(frameID, listenerID));
Note: See TracChangeset for help on using the changeset viewer.