1,239 karma · joined May 3, 2017 (9y ago) · 137 submissions
[ my public key: https://keybase.io/hyperreality; my proof: https://keybase.io/hyperreality/sigs/UP-XDCQUL1Z4L1T9KfF14x0Jpy_WxPs5UEyAPkIKPRs ]
comment 5y ago · link · parent
> In such cases, we want our API to set the Access-Control-Allow-Origin header to our website’s URL. That will make sure browsers never send requests to our API from other pages.
> If users or other websites try to cram data in our analytics API, the Access-Control-Allow-Origin headers set on the resources of our API won’t let the request to go through.
The ACAO header only performs a controlled relaxation of cross-origin restrictions. It is the browser that is ensuring that by default other pages can't send requests to the API. Just a nitpick as I feel the rest of the article illustrates this well.
comment 5y ago · link · parent
comment 5y ago · link · parent
But in terms of picking the closest point within a country, perhaps with a large enough dataset the AI would be able to distinguish based on local weather conditions when the Google car was driving through certain regions. And this would trump the player's ability to read place names and signage.
comment 5y ago · link · parent
To see just how good the top players are at instantly recognising a country using these clues, then check out https://www.youtube.com/watch?v=zEmoAYpTJuA . Or maybe don't if you don't want the game spoiled!
comment 5y ago · link · parent
Either way, we think that the title "this destroys the RSA cryptosystem" is sensationalistic and probably incorrect. It is presumably based on the fact that the paper claims to reduce some forms of integer factorisation to a lattice problem which can be solved in polynomial time. However, whether this technique applies in the general case to RSA moduli is not argued here and the claim seems to be premature.
37.
Debian Discusses Vendoring–Again(lwn.net ↗)
3 points · by hyper_reality · 5y ago · discuss
comment 5y ago · link · parent
Also Eric Rescorla, the other author of the Extended Random draft, is now the CTO of Firefox? He's one of the foremost experts on TLS, it'd be interesting to examine his role in this.
comment 5y ago · link · parent
Google's forced removal of features from Chromium may just be the straw that broke the camel's back. I see other comments on HN and LWN question the maintainers' judgement, without realising how many resources it takes to package Chromium for distros.
comment 5y ago · link · parent
comment 5y ago · link · parent
However the stack protection will probably require a separate information leak (to find the canary value) or arbitrary write (to overwrite it) to bypass. Unless the attacker is fortunate to find an unprotected function which the compiler missed, or a value that can be overwritten which changes the control flow and isn't protected by the canary.
ASLR is also a decent mitigation against ROP, and requires an information leak so the exploit code can calculate the memory offset to find the library gadgets.
In short, ROP isn't the solution to all the mitigations the parent posted; in fact ASLR is designed to make ROP harder to exploit.
comment 5y ago · link · parent
Here's a few I'm aware of:
comment 5y ago · link · parent
These cash awards for having children being paid by developed countries are laughably far too little, too late in their intention. Looking at the issue in financial terms, having a child and bringing them up well is an enormous cost both in money and time. The most significant being the opportunity cost of at least one parent's ability to participate economically being severely reduced for years. Brian Tomasik estimated that having a child may cost over $300k when measured in those terms, although there is some USA slant in his analysis (https://reducing-suffering.org/the-cost-of-kids/).
Now, Tomasik does mention that having children cannot be judged economically, it's a special and important experience that you can't place a price on. On the other hand, there's no denying that raising a child in today's world is simply unthinkable for many young adults who are struggling with insecurity in housing, careers, and a bleaker outlook on the future. Many commodities are historically cheap today but property is extremely less affordable, and most prospective parents would rather delay having children until they can achieve career stability and afford a reasonably-sized house, which is happening very late in life (if at all) compared to previous generations.
If governments were really serious about reversing the decline in birth rates, they should be looking at pursuing better policies for ensuring more people can afford a home, or providing free childcare at scale - tackling the underlying societal reasons why this trend is occurring rather than adding a hopelessly insufficient cash bandaid. Furthermore, a cash bonus creates a perverse incentive where some people may grab the short term reward without necessarily considering the long term sacrifice involved in having kids.
49.
Ask HN: What are the fundamental “must read” papers on software security
6 points · by hyper_reality · 5y ago · 3 comments
comment 5y ago · link · parent
First it shows how the top CTFs can showcase the state of the art in terms of exploitation. It's hard for anyone to argue that the CTF scene does not reflect the "real world" when it is producing solid work like unpublished virtual machine escapes. And even better, the work is shared in high quality writeups.
Secondly, this plus other vulnerabilities found in VirtualBox emphasises that off-the-shelf hypervisors cannot be considered to create a security boundary. Every serious nationstate possess weaponised exploits to break out of VirtualBox, VMware etc. KVM and Xen have a smaller attack surface and are known to have a better isolation model, but I'm sure there are still plenty of exploits given enough resources. Perhaps this is obvious to some, but some people really do think that VirtualBox VMs act like a sandbox, which is only true if your adversary is rather unsophisticated.
For a writeup from the same CTF, but focussing on networking and cryptography instead involving an exploit in a Chinese anti-censorship proxy tunnel, please see https://blog.cryptohack.org/cracking-chinese-proxy-realworld...
52.
A Swiss parliamentary investigation into the Crypto AG case(electrospaces.net ↗)
3 points · by hyper_reality · 5y ago · discuss
comment 6y ago · link · parent
The advice about masks was on their website on March 2020 largely because they were worried about mass public buying of masks, leaving a shortage for frontline medical workers (https://www.reuters.com/article/us-health-coronavirus-who/ma...).
The guidance was updated as more evidence came in and production of masks scaled up. This should not be compared to outright quackery.
comment 6y ago · link · parent
In my post (https://blog.cryptohack.org/macos-ocsp-disaster) I argued that OCSP was inherently a poor way to perform certificate revocation in this scenario, and that an approach based on Certificate Revocation Lists (CRLs) could be preferable. Regardless, it looks like Apple might be doubling down on OCSP but encrypting the requests, or possibly adding a new protocol altogether.
comment 6y ago · link · parent
Finally, I think the writer should be more careful with their use of the term "dogwhistle". It's a politically-loaded term that isn't used correctly in this piece.
comment 6y ago · link · parent
Generate Random Passwords
>_ < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c6
This produces a 6-character password which only has 35 bits of entropy. It also doesn't print a newline, causing the password to be on the same line as the next prompt. Better to use something like: >_ < /dev/urandom tr -dc _A-Z-a-z-0-9 | head -c12 && echo
Or the "pwgen" utility which can do this for you. Find the process that is using a certain port e.g. port 3000
>_ lsof -P | grep ':30000'
This command will be extremely slow on large systems with a lot of open files. It is essentially listing every open file (the -P flag just inhibits port mappings from e.g. "port 22" to "SSH") and then grepping the output. Much better to run: >_ lsof -i :30000
Which is not only shorter, but much faster as it directly gets info about that port. Add your public SSH key to a server in one command
>_ cat .ssh/id_rsa.pub | ssh hostname 'cat >> .ssh/authorized_keys'
This is what the "ssh-copy-id" utility, which is part of the openssh-client package, does already. Harder, Faster, Stronger SSH clients
>_ ssh -4 -C -c blowfish-cbc
All three of those points are debatable with that command. Just use the defaults.comment 6y ago · link · parent
If the beef by-products are being sold by cow farmers for a profit, that makes slaughtering a cow more profitable for farmers. It could mean that more cows are farmed, the price of beef goes down, and therefore the demand goes up. It's only if beef by-products are relatively worthless that your argument is justified, and from a quick search that doesn't seem to be true at all - byproducts are worth 10-15% of the carcass [1].
Similarly, if commissioning new nuclear submarines is cheaper because the SMR research has already been done, then defence procurers can make a stronger case to buy more of them as opposed to other military technologies.
[1] https://www.farmprogress.com/story-beef-byproducts-buoy-catt...
comment 6y ago · link · parent
Ignoring the typical arguments against nuclear, I think a main point from them specifically is that investment in energy is zero-sum, and state resources directed towards nuclear energy are resources not going towards renewable energies. Furthermore, heating and transport make up a large proportion of carbon emissions, and these generally aren't powered by nuclear energy. So nuclear places the focus of energy transformation in the wrong place, and allows governments to believe they are solving the problem when much larger investment in renewables is required.
I'm not qualified enough in the area to agree or disagree with the implicit tradeoffs there, it's just the argument I've heard.
comment 6y ago · link · parent
It's scary to imagine what the Stasi would have been able to accomplish with today's surveillance technology. The article shows how their bugging was limiting by budget and by the human resources required to covertly insert recording devices. Since then, every aspect of surveillance has become easier, stealthier, and cheaper to deploy at scale. End-to-end encryption has been the main countermeasure, but can be worked around, since the metadata of a conversation tends to be more significant than the contents.