by tyingq · 5y ago · 0 comments
There's a widget that pops up periodically that says "Someone in {city}, {country} purchased {product}". It looked a bit fishy, so I poked around the source code.
Sure enough, the faked purchases are in the source code. They don't even bother to load them via XHR to at least give some semblance of legitimacy. Lol.
s = [{ "sn_city": "Pompano Beach", "sn_country": "United States", "sn_discount": null, "sn_first_name": "Erick", "sn_handle": "natu-t-shirt", "sn_img": "https:\/\/cdn.shopify.com\/s\/files\/1\/0283\/5824\/6448\/products\/product-image-1183227221.jpg?v=1600916205", ...
From: https://sales-notification-cdn.makeprosimp.com/v1/published/...
Since they are almost always on dubious looking ecommerce sites, or scammy betting or crypto web applications
"1 other person looked for your dates in the last 10 minutes"
Booking.com is the worst.
I thought this logic was usually done in the backend and can't be viewed from the front? E.g. right click > view source in Chrome only shows HTML and some frontend JS doesn't it?
Normally, yeah, you wouldn't see individual purchase data in front-end code...that would be backend code returning just json/xml/whatever that the browser would consume.
That it's hardcoded in the client is why it's funny and obviously fake data.
I always assume these to be fake. Anywhere