New issue
Advanced search Search tips

Issue 882135 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Sep 9
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Android , Windows , Chrome , Mac , Fuchsia
Pri: ----
Type: Bug-Security



Sign in to add a comment

Security: setTimeout Circumvents Deferred Clipboard Access Protection

Reported by chriswbe...@gmail.com, Sep 8

Issue description

VULNERABILITY DETAILS
This attack exploits setTimeout to read data from a deferred reply (such as by Axios or any other promise-driven HTTP client) and inject it into the clipboard.  Normally actions like this will be blocked by browser security policy.  For reference, this issue is blocked in Firefox and the attack will not work.

VERSION
Chrome Version: [69.0.3497.81] + [stable]
Operating System: [OSX 10.11.6 El Capitan]

REPRODUCTION CASE
Please see attached file and click "Exploit Me" - thanks for your time.


 
ClipboardExploit.html
975 bytes View Download
Cc: dcheng@chromium.org
Components: Blink>Input
Labels: Security_Severity-Medium Security_Impact-Stable OS-Android OS-Chrome OS-Fuchsia OS-Linux OS-Mac OS-Windows
Owner: mustaq@chromium.org
Status: Assigned (was: Unconfirmed)
I think this looks like a bypass of our user gesture timeout. mustaq@ I believe you are working on this issue, would you mind taking a look and suggesting an owner otherwise?
Status: WontFix (was: Assigned)
Actually, sorry, I was wrong--the setTimeout does not work past 1 second (i.e. setTimeout(poll, 1005) does not allow copying to the clipboard). This is in line with our current user gesture timeout mechanism, so I'm going to close this as WontFix. Feel free to post again if you disagree.
The only reason I would disagree is if by chaining setTimeouts in the above manner allows subsequent timeout events to execute past 1000ms.  It does look like it behaves this way on my system when I set my dev tools to Slow 3G.

Well, that, and I like money.

Thanks for your time either way.
Chrome doesn't allow user gesture token propagation through setTimeout chaining beyond depth 1.  We know this is not ideal from chaining perspective, but this prevents token abuse like this.

Project Member

Comment 5 by sheriffbot@chromium.org, Dec 17

Labels: -Restrict-View-SecurityTeam allpublic
This bug has been closed for more than 14 weeks. Removing security view restrictions.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: UserActivation

Sign in to add a comment