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 6mo ago · link · parent

If you do not update the phone, chances are high that there is some Linux vulnerability you could expoloit. The privileged vendor software also can have vulnerabilities. For example, here [1] researches hacked the phone with Verified Boot using a boot logo parsing error.

My impression that you should treat your phone as something that can be hacked any moment and not store anything important there.

[1] https://www.sstic.org/media/SSTIC2024/SSTIC-actes/when_vendo...

comment 6mo ago · link · parent

1) My phone is not officially supported by LineageOS so I will have to port it first.

2) I did not analyze LineageOS yet and how it is different from stock Android, so I need to go through complete diff.

> If you want a stretch goal try and de-Google yourself

My goal is to have an open source system that is under my full control and doesn't play tricks on my by sending telemetry or collecting forensic databases. Because now I cannot even connect the phone to Internet and it is not as useful as it could be.

comment 6mo ago · link · parent

Think how bad the market got. Today we have preinstalled garbage apps like LinkedIn, garbage apps mandated to be preinstalled by the government, ads, cloud accounts, notifications spam, telemetry. This is not only Chinese smartphones, for example Samsung also plays this game. I assume there are Chinese backdoors, American backdoors and national government backdoors on almost every phone.

And there seems to be no way to buy a "free" smartphone without Google Services and telemetry below $250. Why 250? Because free OS have multiple bugs and issues and it is not rational to pay more than that.

I am considering two options, one, try to clean up and patch the firmware for a cheap smartphone (remove almost everything proprietary including Google Services, Unrusted Execution Environment, except for basic GUI and launcher), or two, port something like Lineage OS to my phone. Also I need to examine the network traffic and scan for potential weak points like SUID binaries. It is scary to think how much time I will have to waste for this.

Also, it is pretty stupid, in my opinion, to make an OS not based on Android, for example, use Qt for GUI, because there will be no apps for it.

comment 6mo ago · link · parent

But it seems that many parents do not bother to do anything to raise their children properly, including setting up parental controls.

comment 6mo ago · link · parent

The point is that it is unrealistic to expect millions of people to mark the content. Also, the header is better than the metatag because it can be added to images, videos and other non-HTML content as well.

comment 6mo ago · link · parent

I think the header/metatag is designed poorly. The RTA proposal is that every operator of every site must verify the content and add the header to mark the site as "safe" or "unsafe". This is unnecessary burden that they have to bear if this proposal is given a green light and this is wrong.

Instead, the default should be, that if there is no header or it cannot be parsed, then the content is unsafe. And if there is a header, it describes the page rating, like what kind of dangerous content it may contain. The header may be added to any displayable content like HTML, text, images, audio or videos, but not to machine-readable content like JS files or AJAX responses.

So only those who wants their site to be accessible by minors, have to add headers. For social networks, the user might have an option to mark his content as "safe".

This means that with my proposal existing site operators need not to do anything to mark their sites as "unsafe" - all sites are "unsafe" by default. This means that millions of site operators need to spend 0 dollars to adapt their sites. How great is that?

The browser on a device with parent mode, should not allow displaying any content which doesn't have a header or that is marked as unsafe, or that contains header with invalid value. The parents may whitelist some sites.

There should be a reponsibility for intentionally marking unsafe content as "safe". We should also think what to do with foreign operators, intentionally putting invalid headers for unsafe content. Maybe they should be added to some kind of blacklist that the browsers would periodically update.

Search engines like Google could work by default in "safe" mode, but add "unsafe" header if the user wants to turn off restrictions.

> If a site is not adding the RTA header then progressively fine them into oblivion.

I think my proposal is better because it requires only fining those who intentionally misrepresent content safety.

comment 6mo ago · link · parent

Macros can secretly add "unsafe" blocks into the code?

comment 6mo ago · link · parent

And Rust omits overflow check under the same excuse, although overflow was a reason that allowed multiple Linux kernel vulnerabilities.

comment 6mo ago · link · parent

I looked at the Raptor Lake errata [1] and it looks pretty scary. What if someones builds an exploit on these errors?

This is why CPU designers should aim for simplicity. This is why RISC-V vector extension, which requires complicated logic, can become a source of implementation errors.

[1] https://edc.intel.com/content/www/us/en/design/products/plat...

comment 6mo ago · link · parent

Note that VS Code is built on Electron and it is a pain to sandbox because Electron has (had?) SUID sandbox helper, and you cannot run SUID binaries in sandbox easily. Sandboxing on Linux is extremely difficult task.

comment 6mo ago · link · parent

Namespaces look dangerous to me because they break lot of assumptions software was built on before. For example, sudo relies on /etc/sudoers being accessible only to root. But with unprivileged containers one can easily create a filesystem namespace where /etc/sudoers would contain arbitrary data. I think, SUID bit won't work in container, but there might be other ways to confuse privileged software using containers. Or not?

Also, if the container has access to dbus, one can try to exploit multiple services listening on dbus.

comment 6mo ago · link · parent

If you are using NPM for business, you should be paying for a repository which was checked by antivirus company and not rely on free repository supported by unpaid volunteers.

comment 6mo ago · link · parent

It is ridiculous that countries like Australia (a party to a convention) have a say in whether Turkey should or should not pass ships through the strait. This looks like a legacy of colonization era. This convention should be repelled, and the new agreement should be made by Russia and Turkey and other Black sea countries ignoring the interests of colonizers.

comment 6mo ago · link · parent

I think US blocked international waters around Cuba, without any legal basis (although there is no such thing as international law anyway) at the time of Cuban crisis. And now US seems to block international waters near Iran threatening to attack any ship going to or from Iran, without any legal basis.

Proof: https://apnews.com/article/us-iran-war-navy-blockade-strait-...

comment 6mo ago · link · parent

I think US established a naval blockage against Cuba and other countries multiple times in history, blocking passage of ships in international waters.

comment 6mo ago · link · parent

Anyone can buy a StarLink terminal though. Also, you can use a friend's spy satellite if you don't have your own.

comment 6mo ago · link · parent

Modern Shaheds can be controlled through satellite links like StarLink, with high quality video. Also, targeting a large pile of metal in the sea should not be difficult with something like a radar.

comment 6mo ago · link · parent

That's why you should be downloading from F-Droid anonymously.

comment 6mo ago · link · parent

I think it is 3 extra instructions on RISC-V if you add signed numbers. So 1 addition (the most popular operation) turns into 4 instructions. What are those people thinking? I generally like RISC-V but this part in my opinion, is wrong. They should just have added "overflow enabled" bit to the add instruction.

comment 6mo ago · link · parent

> is a choice you can make when compiling software

That is not a solution because it means the code can behave differently, and expose vulnerability if wrong compilation settings are chosen.

The functions like "wrapping_add" have such a long names so that nobody wants to use them and they make the code ugly. Instead, "+" should be used for addition with exceptions, and something like "wrap+" or "<+>" or "[+]" used for wrapping addition.

That's how people work, they will choose the laziest path (the simplest function name) and this is why you should use "+" for safer, non-wrapping addition and make the symbol for wrapping addition long and unattractive. Make writing unsafe code harder. This is just basic psychology.

C has the same problem, they have functions checking for overflow, but they also have long and ugly names that discourage their use.

> modern hardware will just wrap if you don't check and that's cheaper

So you suggest that because x86 is a poorly designed architecture, we should adapt programing languages to its poor design? x86 will be gone sooner or later anyway.

Also, there are languages like JS, Python, Swift which chose the right path, it is only C and Rust developers who seem to be backwards.

comment 6mo ago · link · parent

I read about Pixel 9 Dolby Decoder bug, and it is based on integer overflow. It was a mistake to allow "+" operator to overflow, and this must be fixed in new languages like Rust, but it is not.

comment 6mo ago · link · parent

It contains comparisons: https://huggingface.co/deepseek-ai/DeepSeek-V4-Flash

comment 6mo ago · link · parent

I thought DeepSeek was closed-weights and proprietary? I wonder how it compares against Western open-weight models. The hugging face page contains the comparison only with proprietary models for some reason.

comment 6mo ago · link · parent

I think "rewrite" is rarely used nowadays? Isn't it something from old days of PHP and Apache?

comment 6mo ago · link · parent

They do not have SMS OTP confirmation for bank card purchases? It is much more difficult to deny anything when there is a record of delivered SMS message along with phone identifier and precise location.
1
212223
185