Better HN
topnewbestaskshowjobs
Log inSign up

devit

4,235 karma · joined Sep 10, 2015 (11y ago) · 1,525 submissions

Submissions

comment 11y ago · link · parent

Security? What security?

Every single release with iOS has been totally broken security-wise, as can seen from the existence of jailbreaks.

Apple doesn't even require seeing the source code, and so there is no way they can stop malicious applications written to evade detection from getting to the App Store.

And thanks to their policy you must browse with Safari WebKit, which is a nice juicy ~40% browser share target.

Of course, both Android and Windows Phone are broken too, since they also expose oversized monolithic kernels written in C to random applications, but at least Android doesn't require you to give up freedom to get non-security.

comment 11y ago · link · parent

That's possible in any language that doesn't force you to include a computer-checkable proof that your overridden equality operator forms an equivalence relationship.

comment 11y ago · link · parent

If patent trolls are moving to this, it seems to be a great development for society, since it makes patent trolling itself by both NPEs and PEs less profitable or unprofitable.

The legal system still seem to be broken, because it should offer a large reward to the "PTAB troll" to be paid by the patent owner so that instead of settling they would go through and invalidate the patent, while still getting money from the patent owner, who would also lose the money from the (non-)infringer.

comment 11y ago · link · parent

What does "trolling PTAB" mean?

comment 11y ago · link · parent

There should be laws that force anyone who owns a platform without any perfect replacements (which includes all two-sided markets) to allow any legal and non-fraudulent content, products, businesses or people on it at non-discriminatory costs.

Amazon should be forced allow selling anything legal, Apple should be forced to allow any legal apps, Facebook should not be allowed to ban people, Paypal should not be allowed to freeze accounts, Google should be forced to allow anyone to use AdSense and allow anyone to advertise on it, Airbnb should be forced to allow anyone to list properties, etc.

Without these laws, our freedom and our ability to participate in the economy is at the mercy of whatever company wins the lottery and becomes the owner of the dominant platform in a niche.

comment 11y ago · link · parent

Possible solutions:

1. Add an If-Hash-Mismatch header so you don't need to transfer the body

2. Add a list of hashes to accept to the content security policy headers

3. Add a list of public keys to accept to the content security policy, and allow the content if it's signed by one of those (this requires some standard way of signing things, maybe PGP/MIME or a dedicated HTTP header)

4. Only allow this from <script> and <style> tags that are in the <head>, or that are at "end" of <body> (meaning there are no tags other than <script> or <style> afterwards), or resources referenced from CSS and JavaScript files loaded that way.

EDIT: 5. Add an ECC public key (Curve25519?) to the content security policy, and accept hashes where an extra attribute is specified providing an inline signature of the hash with the key

The idea of the last one is that XSS would usually happen in in the middle of the body and not in the head or footer.

That said, you can XSS with inline script, so it seems this only mitigates XSS vulnerability with length limitations on the payload (EDIT: nope, CSP blocks inline script).

comment 11y ago · link · parent

I think this can be implemented on current Rust, although you will have to define specific array, list and sets for this situation.

However, you would probably want a different implementation anyway due to the different performance characteristics of disk/SSD vs RAM.

comment 11y ago · link · parent

How does this compare to Osmand?

comment 11y ago · link · parent

It's sad to see that some companies so brazenly abuse their customer's trust, and there are no consequences for them.

Users trust Apple to protect them from malicious and perhaps from low-quality apps, and instead Apple abuses their power to try to silence those distributing information they don't like.

comment 11y ago · link · parent

This is just the Windows driver enabling local privilege escalation.

comment 11y ago · link · parent

It might be much more effective to ask them to only take part in or start defense-related activities at NSA or GCHQ.

Even if they only work at protecting the US and UK from foreign agencies, that will still result in mostly securing the whole world since hardware and software is used worldwide.

It's also more realistic since it doesn't involve destruction of those intelligence agencies but merely retasking over time.

comment 11y ago · link · parent

That's ridiculous.

They should commit to providing updates to the phones forever.

comment 11y ago · link · parent

I don't see any reason to believe that this is any better than a random Android device or that the company has any competence at security or that it can be trusted.

This looks just like a random customized Android phone with default full disk encryption and some security marketing (written by someone with limited command of the English language).

comment 11y ago · link · parent

A related thing: what about considering the number of people who clicked on the article or comments links in addition (or even instead of) to the number of upvotes?

For article links, it can be tracked with navigator.sendBeacon for recent browsers with JavaScript enabled, and a server-side redirect otherwise.

There is some risk of promoting click-bait this way though, so might need to be careful and provide an "undo upvote" or downvote button, and perhaps find some click-bait-related signals to hedge against (maybe time until next action on HN, titles with lots of generic words, similarity to Buzzfeed headlines, etc.).

comment 11y ago · link · parent

Rust, among other things, prevents mutable aliasing, allows to create non-escaping pointers and provides deterministic destruction and unique ownership.

These things are essential if you don't have a GC but have a way to free memory, because the bugs they prevent would result in accessing reading or writing memory at invalid addresses.

That's not a problem with a GC, but they are still very useful because they prevent these issues that cannot be statically prevented in Java/JavaScript:

- Exceptions due to one part of the program manipulating a data structure while another is accessing it: the canonical example is someone iterating a dictionary while something else mutates it

- The program keeping a reference to mutex-protected data after unlocking the mutex

- Two threads manipulating the same object, causing races

- Something accessing a File that is closed, or in general a type in an unexpected state (this is because with a GC you can't "destroy" the previous object, but merely set it to a "closed" state that you can't statically check)

- Exceptions due to null pointers

So in general Rust is a safer language than Java, JavaScript and languages equivalent to them.

comment 11y ago · link · parent

Is there an explanation of how exactly this differs from current browsers?

All things that are described in the page seem pretty "normal" and "obvious" things to do, so it's not quite clear which things are not being done in current browsers.

comment 11y ago · link · parent

That's quite cool, although it would be more practical to run the MS-DOS software in DOSBox or a virtual machine and configure a virtual floppy disk drive.

comment 11y ago · link · parent

There is currently no system that can provide perfect anonymity against a global adversary (someone who has wiretaps on all links and can possibly inject data as well), and it's not clear if it is technically feasible to build one.

There is also no feasible way of mathematically proving that complex hardware or software does what is supposed to do, which means that you need to trust the authors, and isolation against bugs with security impact is required.

comment 11y ago · link · parent

Please don't do this, unless you are being attacked and have exhausted all other options (such as fingerprinting the attackers in a more targeted way).

comment 11y ago · link · parent

Scholastica's practice of charging $10 for each submission seems ridiculous: if someone submits a million dummy submissions the journal has to ask support to forgive the charges...

I think that a much better approach would be to require papers to be submitted as Git pulls adding TeX files, and then use a free code review tool like Gerrit to do peer review.

That might take a bit more learning than Scholastica, so starting with Scholastica until the journal is more popular might make sense, but using such expensive proprietary software doesn't seem to be acceptable long term, and if a tool works for peer review of code changes, it should work for peer review of articles as well (maybe with some customization if needed).

comment 11y ago · link · parent

If data access is equally distributed across keys, then running multiple Redis instances (with sharding) is perfect, since ultimately you want each key to be serviced by a single core, for optimal performance in a system with caches and NUMAs.

However, if data access is read-heavy and not equally distributed across keys, then having shared memory (aka multithreading) is quite essential since you want all cores to operate on the same data, and shared memory is much better than sending the data across especially if the heavily accessed keys vary quickly over time.

I'm not sure if memcached handles this well (it requires a lightweight rwlock/RCU/MVCC mechanism, for instance), but a shared-nothing system like Redis cannot provide good performance in all cases.

comment 11y ago · link · parent

Why "Future"? It's the present.

None of the most popular websites supports free speech, in the sense that they will not censor anything legal for them to distribute.

comment 11y ago · link · parent

In both (classic) Python and JavaScript, there is no static typing and you can change the type of existing objects, access all their fields, and add/remove methods and field any time.

The only languages with "weaker" typing are languages with no concept of types at all.

comment 11y ago · link · parent

I vote for an angel holding a key (to be drawn using a fantasy/videogame art style, not a religious one).

comment 11y ago · link · parent

Well, let's start, I don't think this list is exhaustive.

Consumers:

- Unless you carry two mobile devices, you can't use several apps that are iOS-only or Android-only. This is because Apple refuses to support Android apps, and Android cannot easily support iOS apps because iOS is tied to iPhone/iPad hardware (and other tech/legal issues caused by Apple)

- If you decide to only carry an iOS device, your freedom is restricted and you can only run software according to Apple's permission. Also, it's not obvious to the average consumer which categories of software they have been prevented from using by Apple (this includes or included things like a faithful port of Firefox or Chrome, BitCoin wallets, BitTorrent software, games including the confederate flag and so on).

- If you want to run iOS software, you have to pay Apple several hundred dollars more than you would in a competitive market for iOS devices, and can only choose between devices Apple makes

Software developers:

- Reaching a large majority of mobile users requires writing the software twice, due to existence of iOS and the fact that Android cannot support iOS apps and Apple refuses to support Android apps

- Reaching the large market share of iOS users forces you to support Apple's practices, buy and manage Mac hardware, warp your software at additional cost to fit Apple whims, wait days to get updates delivered (if Apple decides to accept them) and pay 30% of your revenue for a service that has at most 5% marginal cost to Apple

- Some software cannot be written for iOS because Apple doesn't allow it, reducing the market for it and potentially making it not viable to develop it

Phone/tablet makers:

- Lots of people only want to carry one device and want/need to use iOS apps (due to lock-in and exclusive software), so the market for new mobile devices is reduced even if they are better in all aspects than existing ones

Society:

- Less innovation happens due to Apple's restrictions on software and the reduced market for non-iOS devices

- Freedom is being curtailed by Apple while offering users benefits for accepting that curtailed freedom, contributing to change cultural norms to a state where it is acceptable for such a company to decide which software and hardware is allowed in the marketplace, and in general what businesses and customers are allowed to do and publish

If Apple were split into three truly independent companies, one selling hardware, one selling iOS and OSX, and one offering the App Store and other online services, most of these issues would no longer be present.

Google is also guilty of several things similar to what Apple is doing, although they are generally less restrictive and it's possible to opt out, and thus less of an issue.

comment 11y ago · link · parent

What about Apple, who, if antitrust law applies to them, would be the most egregious antitrust violator of all time in the tech industry, far worse than Google?

Microsoft was convicted for merely including Internet Explorer along with Windows while Apple not only includes Safari, but prevents anyone else from offering browser engines (!) on its platform.

As well as tying iPhone/iPad hardware to iOS and viceversa, iOS to App Store and viceversa, iOS development to OSX, OSX to Mac hardware, App Store to 30% fees on developers and being subject to Apple's arbitrary whims with no recourse including being prevented from competing with any Apple software (under the "cannot replicate system functions" clause).

It seems the theory that "antitrust law only applies to monopolists" is saving them, but of course they are doing enormous damage with their lock-in even with 50% market share due to the large platform network effects.

comment 11y ago · link · parent

I don't think there any additional security issues regarding Apple altering the binaries.

iOS devices are already running a closed source proprietary OS, which can easily set an hardware breakpoint in a binary and then do anything that could be done by modifying the binary itself without leaving traces anywhere (other than timing and cache effects).

Apple even designs and manufactures the CPU so they could even modify the CPU to detect instruction patterns and siphon off private keys without any detectable timing or cache effects at all.

Of course, that doesn't mean that it's all fine, but rather that the system is already completely broken to begin with in this respect.

comment 11y ago · link · parent

The biggest problem of this is that it only works on Google's ads, but there are far more obnoxious ads that will result in the user wanting and installing an adblocker anyway, and then why bother with Contributor?
1
4748495051