News for hackers. Stuff that matters.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by vilhelm_s on Friday March 09, 2018 @01:38PM (#16553820)
> They rewrote the site's code, they say, to log every user's password, rather than store them as encrypted hashes. They tweaked a feature designed to automatically encrypt messages with users' PGP keys, so that it secretly logged each message's full text before encrypting it, which in many cases allowed them to capture buyers' home addresses as they sent the information to sellers. The site had been set up to automatically removed metadata from photos of products uploaded to the site; they altered that function so that it first recorded a copy of the image with metadata intact.

Yeah, you probably should not do your PGP-encryption server-side...

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by wlesieutre on Friday March 09, 2018 @01:54PM (#16553950)
You shouldn't do it in a web browser at all, client or server side. They can start off doing it client side and then silently switch to doing it server side. I've admittedly never used PGP, but I would think if a website at any point has access to your private key and could transmit it back to their server, you're doing it wrong.

I suppose it's a question of your threat model. Do you trust the website to not do that? Given that FBI is willing to take over and continue operating websites that distribute child porn, the default answer to that question ought to be no. You have no way of knowing if someone else has taken a server over.

Maybe a browser extension would be a good way to do PGP encryption for websites, keeping the key out of their reach but allowing a one-click encryption right in the browser.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by vilhelm_s on Friday March 09, 2018 @02:18PM (#16554142)
Indeed, it's common advice that users of Darknet markets should not have Javascript turned on at all, since it increases their attack surface. (e.g. https://darknetmarkets.org/agora-comments-on-recent-bitcoin-...)
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by s73v3r_ on Friday March 09, 2018 @06:25PM (#16555975)
I like how that's a .org. They really do just want to get the information out there.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by stingraycharles on Friday March 09, 2018 @02:22PM (#16554174)
Isnt that the default of the Tor browser as well ?
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by 4ad on Friday March 09, 2018 @04:33PM (#16555244)
No, it isn't, which is insane.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by dmix on Friday March 09, 2018 @06:47PM (#16556103)
Yes it is. It wasn't for the first couple years but they turned it on a few yrs back. Last time I used Tor browser JS was disabled by default... I'd be surprised if that wasn't the case.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by 4ad on Friday March 09, 2018 @06:55PM (#16556143)
No, it isn't. I just downloaded the latest version of the Tor Browser, 7.5, and while it comes with NoScript installed, it's turned off by default: https://i.imgur.com/7pb7nvI.png
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by mirimir on Friday March 09, 2018 @08:36PM (#16556601)
That's been a contentious point for years. The dominant faction of Tor devs fears that Javascript blocking will confuse and frustrate too many users. In the kindest interpretation, that's to protect the most users, notwithstanding that it will get some users pwned.

Less kindly, one could argue that Tor devs want to increase the anonymity set, in order to better hide US government users. That was, after all, one reason why Tor's initial Navy funders agreed with open release of the software.

There are similar issues around other Tor vulnerabilities. Such as how easy it is for apps to bypass Tor. Which has allowed the FBI's phone-home malware to pwn users.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by crtasm on Saturday March 10, 2018 @09:45AM (#16558640)
Are you claiming that running an app in an environment where it can access the internet directly counts as a vulnerability in Tor?
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by mirimir on Saturday March 10, 2018 @05:34PM (#16560523)
Yes, of course it is. Whether it's the Tor Project's fault or the user's fault is a contentious issue.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by crtasm on Tuesday March 13, 2018 @02:28PM (#16578516)
I disagree, Tor isn't a sandbox or firewall for your apps. If they make undesired network traffic then the vulnerability is in the app (and arguably, the environment it's running in).
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by TomMarius on Saturday March 10, 2018 @04:55AM (#16557909)
Could you please tell me more about the other Tor vulnerabilities?
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by mirimir on Saturday March 10, 2018 @05:50PM (#16560571)
I'm not aware of known vulnerabilities in Tor itself that devs haven't mitigated, out of usability concerns or whatever. Generally, I consider the focus on Windows users, and the reliance on tweaking Firefox for security, to be vulnerabilities. Also the refusal to compartmentalize the Tor process from userland, either in VMs or in separate hardware. I mean, Whonix has been around for years, and it's not featured (or even mentioned, unless you dig into the wiki) on the Tor Project website. And what about Qubes? Or Tor routers? I mean, they go after people for calling them that, citing their copyright.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by crtasm on Tuesday March 13, 2018 @02:46PM (#16578665)
https://blog.torproject.org/tor-heart-qubes-os

https://blog.torproject.org/tor-heart-whonix

https://blog.torproject.org/tails-36-out

But I fully agree the main site should make the risks of TBB clearer and promote Whonix/similar.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by roystonvassey on Saturday March 10, 2018 @01:15AM (#16557370)
I think it imports any JS blocker you might be using on Firefox. For instance, in my case, I installed Tor and when I started it the first time, I saw the 'NoScript' tab enabled.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by bdhess on Friday March 09, 2018 @11:44PM (#16557137)
> I've admittedly never used PGP, but I would think if a website at any point has access to your private key and could transmit it back to their server, you're doing it wrong.

Encrypting a confidential message for another party is a public key operation. It’s the fact that the plaintext was sent to a remote server that’s problematic.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by wlesieutre on Saturday March 10, 2018 @12:45AM (#16557292)
Oh right, good catch. So the problem is that encrypted messaging on a webpage just can't be convenient like messaging on facebook if you want to keep the server from having your messages. Other people send you messages, and you'll need to decrypt them yourself outside of the browser if you want to keep the browser from having your private key.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by cookiecaper on Friday March 09, 2018 @03:37PM (#16554794)
Extensions get exploited from inside the browser too. If you're going to be buying contraband online, one would hope that you have at least enough commitment to move your mouse over to another window on your desktop and do the cryptography there.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by sloppycee on Friday March 09, 2018 @01:53PM (#16553933)
Client-side encryption (on the web) isn't any more secure; as they could just modify the JS code to log the plaintext.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by lucb1e on Friday March 09, 2018 @03:04PM (#16554530)
> isn't any more secure

It's definitely more secure. But depending on your level of paranoia, yeah, it's often not enough.

Doing things in the browser shows customers that it's done properly and verifiably. It also makes attack way more public than being able to do it quietly server-side. I wish people applied security client-side more often.

I mean, if the server is compromised, you're fucked, regardless of whether you applied your crypto in js or on the server. But if it is done client-side, at least there's a chance that you notice you're fucked.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by rndgermandude on Saturday March 10, 2018 @01:03AM (#16557339)
>Doing things in the browser shows customers that it's done properly and verifiably.

So customers are skilled enough to check the (webpacked together with other stuff and minified) JS code running in their browser before they run it? Even if this was actually feasible, it would be still orders of magnitude easier to just do GPG in a terminal.

And don't forget that, according to the article, we're talking about a crowd where even a lot of the long-standing big sellers are not smart enough to remove GPS meta-data from their product pictures.

>It also makes attack way more public.

You can still serve different (malicious) JS to a select bunch of your users who are least likely to notice and kinda spearfish with that. E.g. it's entirely feasible to just bug new first customers you fingerprinted as using default Tor Browser installs (most likelihood they are tech newbies too).

Even if users make sure the code they run is verified, how do users make sure the public key they are encrypting with is the public key of the party they intent and not a key the (rogue/police) operators of the website put there themselves, doing a good old active MITM key switcheroo? It's not like there is an independent web of trust in the realm of a tor drug market that you can check for that information. Even if the public keys of the big players (most of which would be sellers) are widely known, the key of Joe Newcustomer is not, so you can at least eavesdrop on communication directed to him by replacing his key with your own, look what the seller is writing and also at all those "Joe Newcustomer wrote: >" lines too, and nobody will ever notice until the police knocks on their doors.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by lucb1e on Monday March 12, 2018 @05:46AM (#16567016)
> So customers are skilled enough to check the (webpacked together with other stuff and minified) JS code running in their browser before they run it?

Rather than posing the obvious as a question, yes, I am aware that the overwhelming majority of users will not be able to inspect it themselves. But there are also loads of people who are, and we also roam the internet.

And it's not about inspecting before it runs, it's about noticing weird changes before you typed your credentials. Currently it's a strange idea to open an element inspector before regular actions such as logging in, and indeed, it'd be quite the hassle. But if this were commonplace I imagine tools would jump up to aid in this for both experts and laymen. It isn't terribly hard to trace which pieces of code do something with the password field (such as reading out its value, and trace where the variable is used and copied to) and alert on changes to those. Upon such an alert, customers of a bank might wait a few days to see if there was a breach, and security experts of said bank might like to see the diff that the browser detected. Just a thought of what could be if security was applied client-side more often.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by lev99 on Saturday March 10, 2018 @03:50AM (#16557750)
> So customers are skilled enough to check the (webpacked together with other stuff and minified) JS code running in their browser before they run it?

Checking code before it runs is possible. What is much easier is watching the network traffic on the web browser and examining it for sensitive material. It's an order of magnitude better to know that a security breach has _just_ happened than to find out much later, possibly when that information is being leveraged against you.

> spearfish

Almost all significant criminal activity leaves some trace. The buyer, by nature, has more trust in the seller because the buyer must pick up a package a specific location in a date range. The seller would be the most significant market players (spearfish targets), but give up less information in each transaction. The best way to attack would be watching for user mistakes (gps meta-data), social engineering, and zero days.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by sannee on Friday March 09, 2018 @02:33PM (#16554270)
Having JavaScript enabled when buying drugs over the internet isn't exactly the smartest idea anyway.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by kolpa on Friday March 09, 2018 @02:40PM (#16554308)
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by DINKDINK on Friday March 09, 2018 @08:55PM (#16556669)
>you probably should not do your PGP-encryption server-side

PGP-encryption server-side is meaningless, even if it was done client side, there's a MITM. Eve can replace public keys (though at the risk of exposing her MITM if people are double checking their own public keys listed on the site against their client side public keys)

>They tweaked a feature designed to automatically encrypt messages with users' PGP keys, so that it secretly logged each message's full text before encrypting it

Unless this is Wired's way of saying a MITM as described above.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by Buge on Saturday March 10, 2018 @01:43AM (#16557435)
>PGP-encryption server-side is meaningless

It's not meaningless, it prevents past messages from being compromised by a future breach. Future messages are still compromised, but past messages are secure.

By your logic you could say that forward secrecy is meaningless. But yet security professionals recommend that you use a TLS key exchange with forward secrecy.

Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by DINKDINK on Tuesday March 13, 2018 @06:02PM (#16580277)
I said: If there’s a MITM, server side PGP is meaningless. I didn’t say that server-side PGP has no security value in all domains.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by anovikov on Saturday March 10, 2018 @09:04AM (#16558493)
If users still went to the webpage, and used whatever that webpage offered them, what could help them? Client or server side, they were pwned.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by gcb0 on Saturday March 10, 2018 @09:53AM (#16558678)
unless they knew beforehand to not enter plain text messages there. ever.
Re:How Dutch Police Took Over Hansa, a Top Dark Web Market by Buge on Saturday March 10, 2018 @01:40AM (#16557423)
That quote doesn't say there is any server-side PGP. It could have been happening in javascript in the browser.