Changeset 274153 in webkit
- Timestamp:
- Mar 9, 2021, 9:37:44 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
-
ChangeLog (modified) (1 diff)
-
UIProcess/WebPageProxy.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r274148 r274153 1 2021-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 1 15 2021-03-09 Wenson Hsieh <wenson_hsieh@apple.com> 2 16 -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r274148 r274153 32 32 #include "APIContentWorld.h" 33 33 #include "APIContextMenuClient.h" 34 #include "APIDictionary.h" 34 35 #include "APIFindClient.h" 35 36 #include "APIFindMatchesClient.h" … … 5439 5440 MESSAGE_CHECK(m_process, sourceFrame); 5440 5441 5442 for (auto& pair : textFieldValues) 5443 MESSAGE_CHECK(m_process, API::Dictionary::MapType::isValidKey(pair.first)); 5444 5441 5445 m_formClient->willSubmitForm(*this, *frame, *sourceFrame, textFieldValues, m_process->transformHandlesToObjects(userData.object()).get(), [this, protectedThis = makeRef(*this), frameID, listenerID]() { 5442 5446 send(Messages::WebPage::ContinueWillSubmitForm(frameID, listenerID));
Note:
See TracChangeset
for help on using the changeset viewer.