Skip to content
Access control Disclosed report

Arbitrary code execution via pocket tags

David Chan Follow

Originally disclosed on Mozilla

  • Fixed in 14 days
  • Paid in 23 days
  • Disclosed after 14 days
Text
User Agent: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.81 Safari/537.36

Steps to reproduce:

Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:41.0) Gecko/20100101 Firefox/41.0

1. Login to Pocket
2. Go to about:chrome
3. Edit the preferences
browser.pocket.settings.tags
to
["a<img src='z' onerror='alert(Components.stack)'>"]
4. Visit any site
5. Click on "Save to Pocket" icon
6. Type 'a' into the tags

The Pocket chrome code pulls a list of recently used tags from the Pocket API server. [1] Under normal circumstances, this data is well-formed. However this can be used as an attack vector if the endpoint is malicious or if the transport layer is compromised. 

[1] - http://mxr.mozilla.org/mozilla-central/source/browser/components/pocket/pktApi.js#512 getTags()


Actual results:

Alert popup showing Components.stack output


Expected results:

No code execution

The original report as published on Mozilla's Bugzilla, by David Chan. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is known

A high-severity access control bug in Pocket. Mozilla made it public on 19 June 2015.

About Access control

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by David Chan

View all

2 more disclosed reports, best first.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.