Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Nickguitar/7c6bdfa8255b2ec7e0d6d4015550ce4c to your computer and use it in GitHub Desktop.

Select an option

Save Nickguitar/7c6bdfa8255b2ec7e0d6d4015550ce4c to your computer and use it in GitHub Desktop.
Bypassing Discord's masked links filter

ghost commented May 19, 2024

Copy link
Copy Markdown

Good writeup.

@nicewrld

Copy link
Copy Markdown

You can also mask the url with \, like so:

Hi! I'm an indie game developer and have published a steam demo for my game for Next Fest, would you try it and give me feedback? [https:\\steamcommunity.com\app\2630920](<https://www.youtube.com/watch?v=dQw4w9WgXcQ>)
-# This user is suspected of organizing scams on Discord. [Report them here.](<https://google.com/>)

which looks like:

IMG_5411

@RedStone576

Copy link
Copy Markdown

nice, thats a good one, tho looks more obvious for me than the first 4 examples above lol

@YellowAfterlife

YellowAfterlife commented Jul 12, 2024

Copy link
Copy Markdown

Trying to filter similar characters is a bit of an uphill battle, especially once you take into account combining glyphs and rendering. For example, combining diacritics might add just a few pixels to the glyph:

image

I wouldn't bother too much with reporting these - back when they first started rolling out this feature, there were a bunch more bugs like masked link not being shown on mouseover inside OpenGraph embeds (which you could then route through one or other redirection method that the user might have whitelisted):

image

Upon reporting it along with other considerations I was informed that they don't consider this a bug, will not fix it, and that it's generally out of scope for the bounty program (half a year later, they did fix it).

@RheaAyase

Copy link
Copy Markdown

Awesome,

nitpick you can tweak in the 2nd paragraph:

- [https://malicious.com](https://example.com)
+ [https://example.com](https://malicious.com)

The whole paraph:

- In the context of cybersecurity, one of the first things that comes to mind is to try to make a fake link, putting another URL on the "text" part. It would be something like [https://malicious.com](https://example.com). By doing so, an user would see the URL https://example.com, but by clicking on it, he would be redirected to https://malicious.com.
+ In the context of cybersecurity, one of the first things that comes to mind is to try to make a fake link, putting another URL on the "text" part. It would be something like [https://example.com](https://malicious.com). By doing so, an user would see the URL https://example.com, but by clicking on it, he would be redirected to https://malicious.com.

The following screenshot after this paragraph is also wrong way around.

@Nickguitar

Copy link
Copy Markdown
Author

Awesome,

nitpick you can tweak in the 2nd paragraph:

- [https://malicious.com](https://example.com)
+ [https://example.com](https://malicious.com)

The whole paraph:

- In the context of cybersecurity, one of the first things that comes to mind is to try to make a fake link, putting another URL on the "text" part. It would be something like [https://malicious.com](https://example.com). By doing so, an user would see the URL https://example.com, but by clicking on it, he would be redirected to https://malicious.com.
+ In the context of cybersecurity, one of the first things that comes to mind is to try to make a fake link, putting another URL on the "text" part. It would be something like [https://example.com](https://malicious.com). By doing so, an user would see the URL https://example.com, but by clicking on it, he would be redirected to https://malicious.com.

The following screenshot after this paragraph is also wrong way around.

Thanks, just edited the paragraph!

@redactedontop

Copy link
Copy Markdown

Howdy, Nick. Could I ask for your discord I could contact you? I'm also doing some research about masked links.

@kerrbox445

Copy link
Copy Markdown

Is there a bot moderation that mitigates for all these bypasses?

@rogeddoom

Copy link
Copy Markdown

Can someone hep me right one, ill give pay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment