News for hackers. Stuff that matters.
Re:“Magic links” can end up in Bing search results, renderin... by causi on Monday June 27, 2022 @08:51AM (#31893866)
Wouldn't it be trivial to keep the list of malicious pages locally and not send any data?
Re:“Magic links” can end up in Bing search results, renderin... by Linosaurus on Monday June 27, 2022 @11:26AM (#31895920)
You mean, push bing's entire list of malicious websites to every client? I doubt they want to or can do that.

And also use the local client to scan unknown links? They probably dont want outsiders to have access to this code.

Re:“Magic links” can end up in Bing search results, renderin... by mbesto on Monday June 27, 2022 @12:09PM (#31896592)
Plus, how do you keep it from going stale?
Re:“Magic links” can end up in Bing search results, renderin... by morley on Monday June 27, 2022 @08:53AM (#31893893)
If I were designing a system like this, I would not trust clients to perform legitimate analysis nor report legitimate results.
Re:“Magic links” can end up in Bing search results, renderin... by gnubison on Monday June 27, 2022 @06:14PM (#31901563)
… but it doesn’t matter if the client is compromised, because all it would hurt is the user, right? If the client was compromised, it could just not send anything to your servers, or ignore the results, or …
Re:“Magic links” can end up in Bing search results, renderin... by causi on Monday June 27, 2022 @10:25AM (#31895004)
What? But you're the one writing the client.
Re:“Magic links” can end up in Bing search results, renderin... by sofixa on Monday June 27, 2022 @10:39AM (#31895196)
Doesn't matter. Never trust the client - it's outside of your control, it can be patched, it can be hacked, it can be spoofed, etc.
Re:“Magic links” can end up in Bing search results, renderin... by BoorishBears on Monday June 27, 2022 @11:27AM (#31895923)
Little understanding: Undying trust of the client

Dunning-Kruger level of understanding: Never trust the client for anything ever, it's unreliable, everything must be off client.

Never mind the client is literally the interface into your system, so it being compromised is already game over for an application where the user is most vulnerable party you wanted to protect...

Deep understanding: Trusting the client requires a well thought out security model.

If the client is hacked in this case, they already have full control over what the user sees, they can cut out your remote check.

Maybe a good balance would be to hash the root of the URLs and compare those, or use fuzzy hashing on page contents, just so that the backend isn't getting a bunch of private urls that might accidentally get logged somewhere.

Trades detecting stuff hidden behind redirects for less liability on your backend, something to possibly consider depending on functional requirements.

Re:“Magic links” can end up in Bing search results, renderin... by shepherdjerred on Monday June 27, 2022 @11:44AM (#31896180)
It sounds like you’re advocating for no client at all
Re:“Magic links” can end up in Bing search results, renderin... by Spivak on Monday June 27, 2022 @12:18PM (#31896743)
Just as a trivial example, how confident would you be in this auth scheme?

1. User opens Outlook and types in their email and password.

2. The app requests the user's password hash from the server and checks it.

3. Outlook tells the server auth was successful and gets a session token.

Re:“Magic links” can end up in Bing search results, renderin... by shepherdjerred on Monday June 27, 2022 @04:05PM (#31900055)
In this example you're right. For something like scanning a site for malicious content, on-device is not a bad approach. It decreases the amount of data sent to the server.

The client has a much bigger issue to worry about if the client-side malware scanning has been compromised. Malware could modify the UI/network calls such that your server-side scanning displays a positive result anyway.

You have to trust the client to display information to the user at some point. Link malware scanning that job can safely be delegated to the client. Authentication cannot.

Re:“Magic links” can end up in Bing search results, renderin... by jcranberry on Monday June 27, 2022 @03:00PM (#31899136)
My first guess is that giving phishers/scammers the list of all malicious domains/pages might allow them to circumvent it.