Arbitrary code execution via pocket tags
Originally disclosed on Mozilla
- Fixed in 14 days
- Paid in 23 days
- Disclosed after 14 days
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
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.