Better HN
topnewbestaskshowjobs
Log inSign up

codedokode

9,867 karma · joined Aug 20, 2015 (11y ago) · 5,528 submissions

PHP developer from Russia.
Submissions

comment 11mo ago · link · parent

> Phone numbers are a barrier to entry for bots, preventing unlimited or trivial account generation.

What's wrong with account generation? Nothing. The problem is if they start sending spam to random people. So we can make registration or adding contacts paid (in cryptocurrency) and the problem is gone.

comment 11mo ago · link · parent

> What’s going on in that user object? The pin field seems suspiciously related to the PIN we were asked to input after creating our account

This might be the fault of opt-out serialization library (by default it serializes the whole object and you need to manually opt-out fields from it). So a programmer adds a field, forgets to add opt-out annotation and voilà.

Or they are just using plain JS dicts on the server and forgot to remove the key before using it in a response.

> The vulnerability they’re talking about was presented in a paper by researchers at the University of Vienna.

This vulnerability (mapping phone numbers to user id via rendevouz API) is old and was exploited in 2016 in Telegram [1] and allowed Iranian govt to build a phone book of 15M Telegram users. The paper also mentions that the vulnerability was known in 2012, still not fixed.

[1] https://telegram.org/blog/15million-reuters

comment 11mo ago · link · parent

But has something to do with a bank card you used to pay for it?

comment 11mo ago · link · parent

Does Signal protect from the scheme when the government sends discovery requests for all existing phone numbers (< 1B) and gets a full mapping between user id and phone number?

While slightly unrelated, I thought, how we can fix this for truly secure and privacy-aware, non-commercial communication platforms like Matrix? Make it impossible to build such mapping. The core idea is that you should be able to find the user by number only if you are in their contact list - strangers not welcome. So every user, who wishes to be discovered, uploads hash(A, B) for every contact - a hash of user's phone number (A) and contact's phone number (B), swapped if B < A. Let's say user A uploaded hashes h(A,B) and h(A,C). Now, user B wishes to discover contacts and uploads hashes h(A, B) and h(B, D). The server sees matching hashes between A and B and lets them discover each other without knowing their numbers.

The advantages:

- as we hash a pair of 9-digit numbers, the hash function domain space is larger and it is more difficult to reverse the hashes (hash of a single phone number is reversed easily)

- each user can decide who may discover them

Disadvantages:

- a patient attacker can create hashes of A with all existing numbers and discover who are the contacts of A. Basically, extract anyone's phone book via discovery API. One way to protect against this would be to verify A's phone number before using discovery, but the government, probably, can intercept SMS codes and pass the verification anyway. However, the government can also see all the phone calls, so they know who is in whose phone book anyway.

- if the hash is reversed, you get pairs of phone numbers instead of just one number

comment 11mo ago · link · parent

These services are a good because sometimes you need to access some information in social networks, which is available only after registration. So what other choices you have? And they often do not even allow registration from desktop:

- Google requires to scan QR code with a phone to create an account

- Facebook requires a 3D face scan

- VK requires to use mobile application

- Telegram requires to use mobile application

Desktop now feels like untrusted, shady device, used mostly by cybercriminals. Especially of you use Linux and enable "fingerprinting resistance" option.

> To register a new account, online platforms require SMS (Short Message Service) verification

Incorrect, see above.

> A fake Facebook account registered in Russia can post about the US elections

Facebook is blocked in Russia though.

As for spam problems, require payment to add new contacts above the limit, and disable messaging to non-contacts. Or restrict messaging based on country/city (so that messaging to a different country is paid).

> The average price of SMS verification for an online platform during the year-long study period running to July 2025 was ... just a fraction of that in the US ($0.26), UK ($0.10) and Russia ($0.08).

That's outdated. With new Russian legislation, most platforms removed support for Russian phone numbers, so now you cannot even find a service that allows to receive SMS to a Russian number. Futhermore, if you Google such services, it seems that they use the same provider because all of them do not have any working Russian numbers.

comment 11mo ago · link · parent

Maybe they don't like having their precise location tracked 24/7?

comment 11mo ago · link · parent

That sounds like Soviet washing machine to me. However, they had a mechanical timer.

comment 11mo ago · link · parent

There are also countries which buy Russian resources indirectly, via Turkiye and other countries.

comment 11mo ago · link · parent

To be fair, conscripted people did not take part in a war. The ones who take part are those involuntarily mobilized in 2022, well paid volunteers and convicts who get a pardon after serving for a certain time.

comment 11mo ago · link · parent

> pledge to phase it out by 2027

When the war hopefully will be over, sanction lifted and there will be no problem with trading with Russia anyway.

comment 11mo ago · link · parent

People in EU buy Russian natural gas and see no problem with it. What are you talking about.

comment 11mo ago · link · parent

Also convicts who can get out of jail early.

comment 11mo ago · link · parent

Kids should own a device with "adult" bit set to 0, so that they can only use government-approved applications and sites. Why government? Because parents are too lazy or dumb to configure anything and 90% will just let their children access whatever they want and the rest 10% will feel like losers who cannot watch the things all their classmates are allowed to watch.

comment 11mo ago · link · parent

> Mean there will be nowhere close enough to launch low cost fpvs against the west in a war

Electric power plants, arsenals and bridges cannot fly like F35 though.

comment 11mo ago · link · parent

The simplest solution to prevent tampering is a seal.

comment 11mo ago · link · parent

To be fair, millions people walking with guns around are much scarier than a guy which can jam GPS with a receiver. We have GPS jammed on a regular basis (including around airports when planes land/take off) and nothing bad happens.

comment 11mo ago · link · parent

I wonder if Aliexpress SDR sellers follow this regulations. And as for transmission power, you can simply connect regulation-complying SDR to regulation-complying amplifier and work around it.

comment 11mo ago · link · parent

> but government has passed laws allowing them to compel all manufacturers of reprogrammable devices to all them to reprogram is with their spyware.

In this case the government may mandate to have spyware pre-installed in the factory - which is already the case for phones and laptops in some countries.

> I promise to never reprogram this card so it debits someone else's account

When reprogramming, the card should wipe private keys so it becomes just a "blank" without any useful information.

comment 11mo ago · link · parent

Reprogramming might imply wiping the read-write partition and removing the attestation key.

comment 11mo ago · link · parent

> I don't think the idea that they could lose access to their accounts occurs to most people

Most people do not store anything valuable in the cloud anyway. The only problem is that they won't be able to login into Windows if MS bans the account, and they won't be able to install apps if Google bans their account along with phone serial number.

comment 11mo ago · link · parent

> Every normal person has content in Google , iCloud , OneDrive , Dropbox and maybe more. That’s 4+ single points of failure

It only means that the content is not valuable for them. I know people who created Google Account only because the phone required them to and they do not even remember the password or username, and do not use Gmail (why use email when there is Telegram). If they lose the phone, they would just probably make a new account.

If you were an investor or trader, managing millions of dollars, would you keep the only copy of critical information in a cloud? I don't think so if you are a reasonable person. Would you keep the only copy of a cryptowallet key in a cloud?

comment 11mo ago · link · parent

Interesting, I stumbled upon SVG fonts only as a format for webfonts in CSS.

comment 11mo ago · link · parent

How does reprogramming GPS receiver turn it into a jammer? To make a jammer, you better buy a cheap SDR from Aliexpress.

comment 11mo ago · link · parent

In my opinion, every manufacturer of a programmable device should not be allowed to prevent the buyer from reprogramming it.

comment 11mo ago · link · parent

Cuba once wanted to partner with USSR in hosting nuclear missiles (purely for defense purposes; you cannot invade with a missile) and US cared very much about it.

comment 11mo ago · link · parent

They don't even fly close to Russia in the Black Sea, I think, after an expensive US spy drone was involuntarily landed into the sea.

comment 11mo ago · link · parent

If you can take out the target using less resources, how is this bad? If a drone cost as much as 1/100 of an air defense missile, it means that you can have more drones than your enemy has missiles given the equal budget.

comment 11mo ago · link · parent

To be fair, in 90s-10s the West invaded multiple Soviet and Russian allies (Yugoslavia, Iraq, Syria, as an example) using weakness of Russian economy an inability to help the allies at the time. That was not a friendly act. USSR withdrew from Eastern Germany in the end of 80s as a gesture of good will in hope to improve the relations, but it was never reciprocated.

comment 11mo ago · link · parent

Shutting down a drone with a machine gun is difficult, there are lot of videos where you can see it. There is even video of a Russian-Iranian drone destroying a car with a machine gun which cannot even protect itself. What is efficient against drones, are Soviet ground-air missiles (which might be dangerous to use around airports), and interceptor drones (which Europe doesn't have). Jamming the radio/GPS probably won't help because drones have antennas on top which form a simple phased array, to ignore the signal from the ground. Drones might also use mobile networks, and there were reports that Russia used Starlink antennas on some drones.
1
262728
185