mirror of
https://github.com/keepassxreboot/keepassxc-browser.git
synced 2026-03-11 08:54:43 +00:00
Merge pull request #2648 from keepassxreboot/fix/dont_allow_sandboxed_iframes
Do not allow sandboxed iframes
This commit is contained in:
commit
991bdb8c95
1 changed files with 7 additions and 0 deletions
|
|
@ -1028,6 +1028,13 @@ kpxc.reconnect = async function() {
|
|||
|
||||
const isIframeAllowed = async function() {
|
||||
sendMessage('iframe_detected', false);
|
||||
|
||||
// Don't allow sandboxed iframes
|
||||
if (self.origin === null || self.origin === 'null') {
|
||||
logDebug('Error: Sandboxed iframes are not allowed');
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
// Check for Cross-domain security error when inspecting window.top.location.href
|
||||
const currentLocation = window.top.location.href;
|
||||
|
|
|
|||
Loading…
Reference in a new issue