3 ms·
I've noticed this before. WTFed before. Does Ebay do any sanity checking on that JS, or is it just a free-for-all?
by duskwuff 11y ago
I've noticed this before. WTFed before.
Does Ebay do any sanity checking on that JS, or is it just a free-for-all?
- Lazare 11y agoThey do, but sanity checking code is fairly hard. Some work has been done on properly sandboxing and securing JS code (ie, the Google Caja project), which I believe works quite well, but Ebay doesn't do any of that. Instead they crudely scan through the listing with a simple regexp looking for keywords that they think suggest you're doing something nefarious. Eg, any JS that looks to them like it deals with setting or reading cookies is flagged; anything that looks like it opens a popup is flagged. "For every complex problem there is an answer that is clear, simple, and wrong."