News for hackers. Stuff that matters.
Re:Remote Code Execution in Slack desktop apps by rvz on Saturday August 29, 2020 @03:52AM (#24314478)
Great report on a critical RCE vulnerability in Slack. However, I will bite.

$1,750 for a detailed report on a critical RCE is like rewarding sniffer-dogs with breadcrumbs. One could sell this exploit at least for 5 figures on the black market.

In all cases, since Electron brings XSS to the desktop, it is a hackers paradise.

Re:Remote Code Execution in Slack desktop apps by justsomeuser on Saturday August 29, 2020 @11:22AM (#24316693)
I found a XSS bug in a popular note taking app. It would allow an attacker to download all the users notes just by having them visit a URL.

I reported it on HackerOne, it was only after I refused to post it on their free program that they added me to their paid private one.

It was marked as "medium", I got $250 for it.

Re:Remote Code Execution in Slack desktop apps by jsploit on Saturday August 29, 2020 @12:56PM (#24317475)
Do you disagree with the severity? I assess it to have a 6.5 (medium) CVSS score.

https://www.first.org/cvss/calculator/3.0#CVSS:3.0/AV:N/AC:L...

Re:Remote Code Execution in Slack desktop apps by justsomeuser on Saturday August 29, 2020 @01:19PM (#24317674)
I realise it’s a medium on that scale and I cannot argue otherwise.

But I think how private that data is to the end user should also be taken into account. It’s a medium for technical risk (relative to server remote exec), but it should be seen as a high priority for the company and rewarded as such.

If an end user were to ask that company “why did you leak all my private data” their response would be “your data is worth less than $250 in human labour and is seen as a medium security risk”?

Re:Remote Code Execution in Slack desktop apps by jsploit on Saturday August 29, 2020 @02:13PM (#24318182)
The authenticated one-click social engineering aspect of this significantly lowers exploit probability and overall risk.
Re:Remote Code Execution in Slack desktop apps by justsomeuser on Saturday August 29, 2020 @02:37PM (#24318391)
This is true, but this attack could work in an Iframe in the background without that click. An attacker could buy a popular blog on the note taking app, and run the Iframe in the background collecting data for years. The bug was at least 5 years old.
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @01:25PM (#24317738)
CVSS is a ouija board and you can make it say whatever you want, which is why very few practitioners take it seriously.
Re:Remote Code Execution in Slack desktop apps by jsploit on Saturday August 29, 2020 @02:07PM (#24318138)
Sure, some of it is open to interpretation, but I disagree with it not being taken seriously. This is the basis for CVEs, most bounty tables, and most audit reports (that I've seen).
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @02:10PM (#24318163)
I'm a practitioner, I've managed bug bounties for several companies, and spent 15 of the last 20 years doing assessment work almost exclusively, and nobody takes CVSS seriously. It doesn't say anything to point out that some people structure "bounty tables" based on CVSS, because, as I said, it's a ouija board; the actual rules for what bugs are worth are still ad hoc, they're just used to determine the CVSS instead of the price directly. And that's not a super common practice!

CVSS scores are put into audit reports --- at the ouiji levels clients want --- to shut up the suits in compliance.

Re:Remote Code Execution in Slack desktop apps by jsploit on Saturday August 29, 2020 @02:21PM (#24318234)
CVSS being used as a basis for bounty payments is certainly evidence that it is taken seriously. Of course there are details that have to be factored in after that calculation, since CVSS is simplified for general usage.

I'm not aware of any programs on HackerOne that don't follow this practice, so it's not "super uncommon".

Re:Remote Code Execution in Slack desktop apps by wglb on Saturday August 29, 2020 @02:29PM (#24318317)
I've been in security for a while and once received a report of a CVSS score that was egregiously high at Critical.

I modified the assumptions that were made by the reporter and came out with Low.

This is one example of why this is a nonsense metric.

Re:Remote Code Execution in Slack desktop apps by jsploit on Saturday August 29, 2020 @02:33PM (#24318349)
Any metric is nonsense if used improperly.
Re:Remote Code Execution in Slack desktop apps by wglb on Saturday August 29, 2020 @02:35PM (#24318368)
I am arguing that there is no proper way to use this.
Re:Remote Code Execution in Slack desktop apps by refulgentis on Saturday August 29, 2020 @11:11PM (#24321068)
Any ouija board lies with the wrong seance supervisor
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @12:52PM (#24317429)
That's a pretty normal price for an XSS.
Re:Remote Code Execution in Slack desktop apps by justsomeuser on Saturday August 29, 2020 @01:20PM (#24317687)
Dropbox and co pay $10,000 for the same exploit.
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @01:25PM (#24317741)
Then you should sell it to Dropbox, because $10,000 is extremely high for an XSS vulnerability.
Re:Remote Code Execution in Slack desktop apps by justsomeuser on Saturday August 29, 2020 @02:36PM (#24318378)
I do not have the market rates for vulnerabilities, but I do know some pen testing companies charge $10,000 for a few days of work that may not return any concrete bugs.

Compared with hiring a pen testing team, offering high bounties seems like a bargain as you get actual exploits that would impact the company.

Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @02:41PM (#24318422)
Yes, that is the premise behind bug bounties. If you're a vulnerability researcher with a track record, you will probably make better money and certainly more consistent money as a pentester. Many pentesters just do both.

I have, uh, some experience with the rates here.

Re:Remote Code Execution in Slack desktop apps by KajMagnus on Sunday August 30, 2020 @06:27AM (#24322521)
Can I ask, if you were the owner of the popular note taking app, what bounty would you want to have paid for that vulnerability? I.e.:

"XSS bug in a popular note taking app ... attacker to download all the users notes just by having them visit a URL"

So as to not feel worried that future vulnerabilities would get sold on the black market instead

Re:Remote Code Execution in Slack desktop apps by tptacek on Sunday August 30, 2020 @02:04PM (#24324615)
XSS? Outside of a social network, where it can propagate itself? For a non-FAANG-scale company? Probably between $250 and $500, if it's a clean and effective XSS. Less if you have to interact with an obscure feature of the application.
Re:Remote Code Execution in Slack desktop apps by KajMagnus on Tuesday September 08, 2020 @02:45PM (#24411533)
Thanks for the reply, I would have guessed maybe 10 x more.

Interesting to hear,

Makes me think that there is not any big marked for exploits targeting smaller companies. Maybe such exploits (for smaller products) would be useful primarily for spear phishing? and not bring in so much money if sold, & hard to find a buyer?

Still, if the note taking app was sth well known like Ev*rnote, I wish they'd pay more. (No idea if it was.)

Re:Remote Code Execution in Slack desktop apps by jansommer on Saturday August 29, 2020 @09:44AM (#24316049)
Damn, didn't know $1750 was low. I got something similar for reporting an exploit to Microsoft, where opening an attached ICS/calendar entry in Outlooks web client allowed me to execute arbitrary JavaScript on outlook.microsoft.com as the current user. Should have asked for more!
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @12:52PM (#24317432)
It sounds like you got $1750 for an XSS-equivalent attack. That's high for XSS.
Re:Remote Code Execution in Slack desktop apps by ianhawes on Saturday August 29, 2020 @10:37AM (#24316386)
Yes... yes you should have.
Re:Remote Code Execution in Slack desktop apps by dQw4w9WgXcQ on Saturday August 29, 2020 @12:18PM (#24317159)
I wouldn't beat yourself up over it. There's probably room to develop an exploit valuation model that better helps to translate (time spent on research) + (X% of business/customer impact), where X is a pretty low figure, otherwise companies would never stay in business.

Don't undervalue the intangible permanence of doing the right thing, character outlasts cash come the grave.

Re:Remote Code Execution in Slack desktop apps by pansa2 on Saturday August 29, 2020 @04:45AM (#24314700)
> since Electron brings XSS to the desktop, it is a hackers paradise.

Just curious - what makes XSS on the desktop different from other kinds of RCE vulnerability?

Re:Remote Code Execution in Slack desktop apps by greggman3 on Saturday August 29, 2020 @05:36AM (#24314919)
Part of this is Electron's environment and arguably fault.

Electron used to default to insecure. You were basically running a web browser except with full access your entire machine file system/camera/mic/network etc. If you are an inexperienced developer it wasn't obvious that live linking to any 3rd party code could be an issue. Electron kind of fixed that. They warn you now and default to more secure. How many devs are capable of keeping it secure is up for debate.

As a related issue, it used to be (maybe still is) that by default, links you click in Electron open in Electron. So you make any app that accepts user data and links and suddenly people are browsing the entire net in an un-secured browser.

And worse, they break stuff. I made an electron app and explicitly made it so all links open in the user's browser. I updated to a new version and then to my horror found whatever I had done to make sure links opened in an external browser stopped opening links in an external browser.

Native apps can have exploits but most native apps aren't designed to be an environment for running arbitrary code. They're only an app for working on data.

Note, I love Electron, I've used it for several projects and it's great. But I'm also afraid of it and wish OSes were themselves more sandboxed so I didn't have to worry about it.

Re:Remote Code Execution in Slack desktop apps by slimsag on Saturday August 29, 2020 @04:52AM (#24314734)
Nothing, but if Slack was a web application and not an Electron application it would mean XSS would not immediately lead to RCE, you would need XSS and a vulnerability in the browser to get an RCE. Electron is basically that for you already: a vulnerable browser.
Re:Remote Code Execution in Slack desktop apps by wereHamster on Saturday August 29, 2020 @05:17AM (#24314828)
I refuse to use the Slack desktop app, and use Slack only through a web browser. I trust Chrome (Google), Firefox (Mozilla), Safari (Apple) far more than the Slack engineers.
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @12:53PM (#24317449)
XSS isn't ordinarily RCE, and XSS is generally much more common than the attacks that do reliably give RCE. It's notable that un-hardened Electron elevates XSS to RCE, because it means there are a lot more opportunities for RCE. That's the subtext of the comment you're replying to.
Re:Remote Code Execution in Slack desktop apps by a1369209993 on Saturday August 29, 2020 @04:00PM (#24318975)
Yes it is? XSS lets you execute javascript code remotely; that's literally a subset of RCE. Are you talking about virtual machine escapes (running native machine code)?
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @05:44PM (#24319637)
No, that is not remotely what practitioners mean by RCE.
Re:Remote Code Execution in Slack desktop apps by a1369209993 on Saturday August 29, 2020 @06:44PM (#24319941)
"Remote Code Execution" means the attacker can Execute Code Remotely, right? I guess you could classify the virtual machine as a (virtually) separate machine from the physical one, so that it's not a RCE on the machine you actually want to attack, but it's clearly executing code on some machine that the remote attacker isn't supposed to be able to execute code on.
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @07:02PM (#24320039)
No. RCE is a term of art. It implies arbitrary native code execution.
Re:Remote Code Execution in Slack desktop apps by a1369209993 on Saturday August 29, 2020 @07:36PM (#24320170)
> It implies arbitrary []native[] code execution.

This is simply not true in a plurality of cases (eg, it implies that applications running under qemu are incapable of having RCE vulnerabilities) and frankly sounds like a distinction that was made up to avoid admitting that script tags are RCE bugs in web browsers.

Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @07:39PM (#24320185)
It's interesting how much this little subthread recapitulates the experience of responding to the median bug bounty submission.
Re:Remote Code Execution in Slack desktop apps by a1369209993 on Saturday August 29, 2020 @08:39PM (#24320428)
Well, modulo "responding to a submission" versus "reporting a vulnerabity", we can certainly agree on that at least.
Re:Remote Code Execution in Slack desktop apps by 0x0 on Saturday August 29, 2020 @05:28AM (#24314886)
nodeIntegration:true
Re:Remote Code Execution in Slack desktop apps by laurent92 on Saturday August 29, 2020 @05:35AM (#24314915)
When running a security bounty, what makes me afraid is the compounding factor of finding the same kind of issue several times in different places, thereby multiplying the cost by 20. Of course $1750 is cheap, but I’d happily donate more if there is there were no risk of paying repeat bounties, given a week between them to fix each category of security failure I learn about.

By the way, the security bounty should be mandatory to display to customers. It’s like saying “We don’t value the sum of all your data of all customers to more than $1750”.

Re:Remote Code Execution in Slack desktop apps by onion2k on Saturday August 29, 2020 @06:18AM (#24315084)
but I’d happily donate more if there is there were no risk of paying repeat bounties, given a week between them to fix each category of security failure I learn about.

A better solution would be to only allow a bug to be reported once per quarter, or once per version of the software. If someone finds a bug in v1.0 that's fixed in v1.1, then someone (even the same person) should be able to report the same bug in a different place in v1.1. That's an incentive for companies to use the report to secure the whole app rather than just fixing the reported issue.

Re:Remote Code Execution in Slack desktop apps by KMag on Saturday August 29, 2020 @06:15AM (#24315076)
Don't bug bounties usually have some rules for splitting bounties or else paying only the first reporter in case of multiple independent discovery?
Re:Remote Code Execution in Slack desktop apps by thaumasiotes on Saturday August 29, 2020 @07:14AM (#24315293)
It is typical that only the first reporter gets a bounty; duplicate reports are usually given "duplicate" status.

But you might have the same vulnerability found in several different places. Reports should really only be considered duplicates if the fix to one automatically fixes the other also. Your bug found in multiple locations might happen to be set up that way -- or it might not.

This exact problem occurs frequently when a company with a bounty program makes an acquisition and brings the new software into scope for the program. The acquired code is often full of relatively easy-to-find, high-impact bugs. What I've seen people do in this case is open the scope, accept a certain number of reports, and then suspend eligibility for that software for a certain period of time.

This would look like "we've had a lot of similar bugs filed against company-we-acquired.com, and we're taking that domain out of scope for X weeks while we work on it."

Re:Remote Code Execution in Slack desktop apps by thaumasiotes on Saturday August 29, 2020 @10:44PM (#24320956)
(You could achieve exactly what laurent92 is asking for by taking an issue type ("SSRF") out of scope for a period.)
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @03:57AM (#24314498)
Can you support that statement about the black market with evidence?
Re:Remote Code Execution in Slack desktop apps by arzel on Saturday August 29, 2020 @04:09AM (#24314543)
agreed on 5 figures. evidence? there’s even clearnet websites where you can buy vulns. most known would be: https://0day.today
Re:Remote Code Execution in Slack desktop apps by viraptor on Saturday August 29, 2020 @05:46AM (#24314957)
What you see on that website is the cost, not the earnings though. If a private exploit costs $1.2k, you can get 5 digits by selling it 9 times. That isn't a huge number of sales, but I don't know if this exploit would sell that many times. Anyway, by disclosing on H1 you're "selling" at most once.
Re:Remote Code Execution in Slack desktop apps by milofeynman on Saturday August 29, 2020 @04:19AM (#24314580)
Re:Remote Code Execution in Slack desktop apps by tptacek on Saturday August 29, 2020 @12:42PM (#24317356)
Zerodium won't buy a Slack exploit. I'm not debating whether there is a black market for exploits; there is. It just doesn't buy most of the things HN commenters think it does.