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

You have mentioned electoral fraud in Russia. With paper voting and cameras, we can at least know that the fraud has happened and estimate its scale. With electronic voting, we wouldn't be able even to check anything.

In major cities like Moscow or Saint-Petersburg, there are many activists that work as observers and just their presense helps to prevent fraud. With electronic voting, they wouldn't be able to do anything, except for verifying that reported turnout matches the number of people who visited the polling station.

I think that main threat for elections is the government and election staff. They have uncontrolled access to voting machines and can tamper with them. Maybe in Western countries it is impossible, who knows, but in my country paper voting is more transparent and auditable than electronic voting.

comment 7y ago · link · parent

This is an internal passport (not for travelling abroad) and everyone has it because without it you cannot buy a train ticket, open a bank account, enter the college etc. Also there is a fine if you don't get it when you are 16 (or 18, I don't remember the exact age).

Also, young people cannot buy alcohol and cigarettes without it (to prove that they are adult) so some of them are motivated to get it as soon as possible.

Here is a Wikipedia link in case if someone didn't hear about "internal passports": https://en.wikipedia.org/wiki/Internal_passport

comment 7y ago · link · parent

Such scanning machines save the time of people counting votes (it takes at least several hours), but you cannot know if the machine hasn't been tampered with. To require re-couting the paper ballots you will need some kind of proof that the results are invalid.

comment 7y ago · link · parent

What you describe can be easily detected by an observer, who can take a video and instantly publish it on the Internet. You cannot take a ballot from the box so that nobody notices. But with electronic voting, you can replace the firmware and nobody notices anything.

comment 7y ago · link · parent

Giving a comfirmation that person has voted for a specific candidate simplifies buying votes. Also, an employer might require employees to bring such a confirmation to prove that they support corporate values.

comment 7y ago · link · parent

In Russia we use an internal passport to vote. So the voter doesn't need any special documents.

comment 7y ago · link · parent

Also, today an observer can take a video and instantly publish it on the Internet if something fishy is happening in the polling station, but nobody can see what happens inside a voting machine and whether it counts the votes properly. Electronic voting is a perfect tool for falsifying election results.

comment 7y ago · link · parent

Election commitee (or whatever it is called in different countries) has unlimited and uncontrolled physical access to those machines and their keys. What stops them from uploading a firmware that would count every N-th vote for candidate A no matter what was voter's choice? How do you detect that?

Unlike electronic voting, paper ballots are much more difficult to manipulate. If a voter has marked a box for candidate X, you cannot change it or ignore it if there are observers. An observer can verify that voting goes according to the rules and votes are counted properly. The most popular way to "hack" paper voting is to organise groups of people and ride them on a bus from one polling station to other so that they can vote multiple times, but it is more difficult to do, and easier to spot than simply replace the firmware in a voting machine.

In the case with an electronic machine, you cannot see what's happening inside.

comment 7y ago · link · parent

If you download and unpack Slack's .deb package [1] , you'll find a script "/etc/cron.daily/slack" (contained within "data.tar.xz") that is a bash script run by cron daily under root account.

This cron script adds a line "deb https://packagecloud.io/slacktechnologies/slack/debian/ jessie main" into apt sources list. Also it adds Slack Inc. public key into list of trusted keys. This allows Slack Inc. to replace any package on your system including bash, firefox, libreoffice or sshd by publishing a package with the same name but higher version number. Note that they can provide malicious updates only to specific users, identifying them by country or IP address, so that other users won't see anything suspicious. For example, law enforcement agencies can ask them to backdoor a suspect's computer to gather evidence or important data for intelligence.

This is the problem with apt and with Linux package managers in general: they assume you only add package sources you completely trust and do not support installing third-party packags without this trust (unlike Windows that supports portable applications or Android that doesn't give root privileges to installed packages). Linux package managers are not suited for installing untrusted third-party applications.

[1] https://downloads.slack-edge.com/linux_releases/slack-deskto...

comment 7y ago · link · parent

Yes, Linux distributions don't have protection against malicious software. If you downloaded thrid-party program and run it, it can read everything from your home directory, including cookies and browser history, it can inject itself into browser process, it can see everything you type.

And if you decided to add third-party apt repository, for example, to use Node.JS or VS Code, you give permanent root access to the owner of repository. Also, some third-party .deb packages (for example, Slack) automatically add their repository and public key to apt sources list upon installation.

For example, there is a third-party repository, that allows installing multiple versions of PHP in Debian. This repository replaces cryptographic libraries provided by Debian with its own ones (you can see those packages here: https://packages.sury.org/php/pool/main/o/openssl/ )

Also, in Linux unprivileged program, run under "nobody" account, can read all unique hardware identifiers like MAC address, HDD serial number etc.

comment 7y ago · link · parent

Is that so? Chromium browser, distributed in Debian repositories, sends a signal to Google (with cookies) every time you open new tab if you use Google as default search engine (you can easily verify this by opening a new tab, running developer tools and refreshing the tab. The URL is https://www.google.ru/_/chrome/newtab?ie=UTF-8 and it has headers preventing caching).

comment 7y ago · link · parent

Swapping is mostly random access operations, writing small blocks here and there, HDD can do about 100 seeks/sec, and it gives speed less that 1 Mb/s while sequential read/write gives speeds of order of tens Mb/s.

comment 7y ago · link · parent

It is not the same situation. If you write/read video sequentially, you get speeds about tens of Mb/s, and with swapping you get random access with speeds < 1Mb/s on HDD. So having limited memory buffer for video is better for the whole system.

comment 7y ago · link · parent

It doesn't make sense to swap out other programs just to load video that will be immediately discarded after displaying. It makes more sense to have limited download and playback buffers and store most of video data on the disk.

comment 7y ago · link · parent

You could also note that today people are turning to Internet instead of traditional media and what do we see there? A monopoly: Google controls almost all search, advertising, mobile phone and user-generated video market (except for adult video), Facebook owns all major Western social networks. So if the government makes a deal with these two companies, they will be able to control what majority of Internet users see on their screens. Wouldn't it be nice if they would see only positive things about one candidate and negative news about others? Both Facebook and Google are private companies and they are free to moderate and censor content as they wish. In exchange for a good service, for example, the government could make legislation more favourable for them.

But no matter how bad is this situation, it cannot be even remotely compared to authoritarian countries.

comment 7y ago · link · parent

Android found a kind of solution for this by agressively killing processes (while saving their state). This seems to be effective because developers are not motivated to help competing applications, they want to have all resources for themselves.

comment 7y ago · link · parent

I have 4 Gb of RAM and most of time it is utulized over 100%. Not a very pleasant experience with modern Electron apps and reactive HTML5 sites.

comment 7y ago · link · parent

When I watched high-resolution videos on Youtube with Chrome, its process could take about 400 Mb of memory or even more and swap out other processes.

> and as long as Chrome doesn't lock the memory range, the OS will swap it to disk anyway

Swapping in/out is random access and is very slow (< 1 Mb/sec) compared to linear reading/writing unless you have SSD.

comment 7y ago · link · parent

The idea not to save data to disk means that they have to be kept in RAM, and Chrome will take even more of it. It's fine if you have an expensive system with tens of gigabytes, but what if you have only 4 or 2 Gb?

Also, why save energy when you are on AC power most of the time?

I remember that watching a long video on Youtube in WinXP could take as much as 400 Mb of RAM. Are they going to increase memory consumption?

comment 7y ago · link · parent

I don't think that possibly slow package manager is main Debian problem. There are more serious issues:

- bug tracker is email-based, not web-based, very old, and without keyword search.

- old versions of software

- unnesessary duplication: repositories contain Python packages that can be installed with Python package managers.

- Debian is not friendly to third-party software, to closed-source software. For example, to install Slack or VS code you have to add third-party repository and give permanent root access to your system to Slack Inc or Microsoft. You have a choice between backdooring your system or not using third-party apps. Compare this to Android that is also linux-based but provides a reliable and comfortable jail for every application except Google's.

- Debian doesn't protect your information from malicious software. For example, if you install third-party app, it will be able to read your browser's history and cookies in your home directory. Also, any unprivileged program can read hardware identifiers like MAC address, hardware list, disk serial number, BIOS data etc. This is perfect for tracking users even if they reinstall or change their operating system. Again, compare this to Android.

- package manager doesn't allow to install several versions of PHP or Node.JS if you are working on several projects. But for language like Python they allow to install two different versions, why Python gets such a privileged treatment and PHP or Node doesn't I don't understand.

There are projects aiming to solve some of these problems like Snapcraft, but as far as I am aware, they are not integrated into Debian yet.

Also, it is a bad idea to hardcode paths (like /use/share) within application, so that you have to recompile it to change the path. All applications should be portable by default to make installation into home directory easier.

comment 7y ago · link · parent

Make face models equivalent to PII and restrict collecting, selling, exchanging them. If you don't do this then there will be cameras on every corner collecting and selling information about your habits, because merchants are desperate to obtain them.

comment 7y ago · link · parent

Good. You have found a rare example of a legitimate use for facial recognition.

comment 7y ago · link · parent

Can you remember millions of faces? Can you watch video from millions of cameras simultaneously and create a list of routes and profiles of people taken by them? Can you look at a person and find his/her social network profile in a second? Sorry, but I doubt your capabilities can be even remotely compared to software.

comment 7y ago · link · parent

It is worth noting that earlier moderators in some chats used bots with admin rights to limit posting rate. So Telegram just made this feature easier to use, without needing to set up a server with bot.

comment 7y ago · link · parent

If they care about privacy then why do they require a phone number which is linked to identity and location? If they worry about bot registrations, they could require a small fee in Bitcoins to sign up.

comment 7y ago · link · parent

By the way, Signal requires a phone number which is linked to the passport. It means that the government can scan it for all possible phone numbers and get a list of people using it, and maybe even their nicknames and profiles.

comment 7y ago · link · parent

Slack is an Electron app, taking about 400-500 Mb of memory and it won't be good no matter if it is secure or not. Also, its UI is over-complicated and looks like it was made by a programmer instead of a designer (by the way, Telegram is the opposite: it is written with Qt and has nicer UI).

comment 7y ago · link · parent

There are almost no ethical uses for facial recognition. It is a technology for criminals.

3809.

Steam Windows Client Local Privilege Escalation 0day(amonitoring.ru ↗)

407 points · by codedokode · 7y ago · 186 comments

comment 7y ago · link · parent

Maybe I will try it, but in my case I run them isolated under another user account so it means that I will have to run several instances of a browser (but I'll try to compare the memory usage). Because I don't want them to install cookies and track me across the Internet.
1
126127128
185