News for hackers. Stuff that matters.
Re:Why is Stack Overflow trying to start audio? by coldpie on Wednesday June 26, 2019 @06:00PM (#20289689)
Why are you allowing arbitrary javascript to be served to your users?
Re:Why is Stack Overflow trying to start audio? by nerdponx on Wednesday June 26, 2019 @06:12PM (#20289781)
Wish I could upvote this 1,000 times.

It's ridiculous. It's a text-based ad. At worst, it's a clickable image. At what point did it become okay in your minds to let advertisers run arbitrary code?

I've left ads turned on specifically on StackOverflow because 1) I want to support StackOverflow, and 2) I trust them not to run malicious ads.

I don't even care that they're running ads network-wide. But if they're going to be running these kinds of ads anywhere on the site, they're going right on the ad block list along with everyone else.

Re:Why is Stack Overflow trying to start audio? by mikeash on Wednesday June 26, 2019 @06:52PM (#20290086)
It’s completely insane. Can you imagine a TV station receiving ads on tapes and playing them to their audience without looking at them first? Can you imagine TV stations occasionally showing ads containing porn, urging people to kill, showing extreme violence during cartoons, or containing specially crafted audio that blows out your speakers, and the TV station just shrugs and says they try their best to stop these things but they can’t stop everything?

Imagine a TV ad that tries to make your phone call a 1-900 number so they can rip you off, and the station says they don’t know where it came from but they’re trying real hard to put a stop to it. And somehow watching the ads themselves before broadcasting them never crosses their mind.

Re:Why is Stack Overflow trying to start audio? by josephg on Wednesday June 26, 2019 @09:27PM (#20290979)
It’s worse than that. Imagine a TV ad which sends malicious code that gets executed to your television, which profiles the hardware in your TV and sends information about your viewing habits (tied to a unique ID) back to the advertiser.

In any other context we would call this a security vulnerability. I think that label also applies here.

Re:Why is Stack Overflow trying to start audio? by Spooky23 on Wednesday June 26, 2019 @09:43PM (#20291044)
You don’t need to, it happens already. Many TVs do screen grabs and send everything you do to the manufacturer or partners.
Re:Why is Stack Overflow trying to start audio? by zeta0134 on Wednesday June 26, 2019 @10:25PM (#20291243)
My Vizio's built-in software tries to do that. There's a reason it's not allowed to connect to wifi.
Re:Why is Stack Overflow trying to start audio? by DCoder on Thursday June 27, 2019 @12:02AM (#20291676)
When you say "it's not allowed", do you trust its own settings? Are you sure it's not doing something like [0]? How do you even protect against that?

[0]: https://www.reddit.com/r/privacy/comments/bpr6xs/if_you_choo...

Re:Why is Stack Overflow trying to start audio? by zeta0134 on Friday June 28, 2019 @12:39PM (#20306166)
I bought a new wifi router and never told the Vizio the new credentials. If it manages to somehow figure out how to log onto the new router, and transmit the data about how I don't own cable service and mostly use it to play retro games? I'm going to be kindof impressed really; at that point, Vizio can have the data.
Re:Why is Stack Overflow trying to start audio? by islon on Thursday June 27, 2019 @07:10AM (#20293375)
My wifi router has an interface that shows every connected device and I can blacklist them based on their physical address.
Re:Why is Stack Overflow trying to start audio? by DCoder on Thursday June 27, 2019 @11:32AM (#20295313)
In the post I linked to, the TV in a similar situation was happily connecting to someone else's (open) WiFi network nearby. You can't really block those…
Re:Why is Stack Overflow trying to start audio? by ammar2 on Thursday June 27, 2019 @07:16PM (#20299887)
Let it connect to your network and then black-hole it?

But that's assuming it doesn't try to connect elsewhere if it detects it doesn't have internet.

Re:Why is Stack Overflow trying to start audio? by nerdponx on Friday June 28, 2019 @09:32AM (#20304086)
And this safely outside the scope of what most people know how to do with their routers.

Imagine having to take countermeasures like this to prevent things you've purchased from spying on you!

Re:Why is Stack Overflow trying to start audio? by SmellyGeekBoy on Thursday June 27, 2019 @04:22AM (#20292620)
Don't buy a "smart" TV?
Re:Why is Stack Overflow trying to start audio? by cerebellum42 on Thursday June 27, 2019 @06:19AM (#20293128)
Isn't every decent TV these days a smart TV? Not exactly practical advice
Re:Why is Stack Overflow trying to start audio? by neop1x on Saturday June 29, 2019 @02:38AM (#20311120)
don't connect smartTV to the internet, juse use the DP/HDMI inout ;)
Re:Why is Stack Overflow trying to start audio? by anoncake on Thursday June 27, 2019 @05:14PM (#20298828)
WPA?
Re:Why is Stack Overflow trying to start audio? by jacobush on Thursday June 27, 2019 @10:25AM (#20294635)
I guess with GDPR.
Re:Why is Stack Overflow trying to start audio? by koolba on Wednesday June 26, 2019 @07:39PM (#20290442)
I bet you could do that with an ad that plays “Alexa- call 1-900-555-1234”.
Re:Why is Stack Overflow trying to start audio? by baroffoos on Thursday June 27, 2019 @02:32AM (#20292198)
The state of web ads is closer to the public pinboard only instead of having ads for grandmas couch its Mr CEO trying every trick to drain your money and track you.
Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @07:38PM (#20290435)
Tv spots are very limited. Digital ad impressions number in the billions with 10s of millions of ad creatives. It’s not the same situation.
Re:Why is Stack Overflow trying to start audio? by mikeash on Wednesday June 26, 2019 @07:43PM (#20290467)
The only reason it’s not the same situation is because they’re willing to throw their users under the bus for a little extra cash. If they wanted to exert more control, they absolutely could. Ads would cost more and we’d see fewer distinct ads as a result.
Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @08:14PM (#20290621)
That is absolutely not the only reason. Digital ads work entirely different from the TV medium and its more than "a little extra cash".

No single publisher today really has the power to change much, no matter how big they are. The issue likes with adtech (like Google) and advertisers.

Re:Why is Stack Overflow trying to start audio? by mikeash on Wednesday June 26, 2019 @08:57PM (#20290849)
Digital ads could work where every single one is vetted by people before it’s served to any users. There is no reason it can’t work this way, other than it being a lot cheaper to skip that step.
Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @09:16PM (#20290941)
All creatives (and the root templates of dynamically construted ones) are actually audited on the advertiser-facing platforms before they ever get to the publisher.

Unfortunately running javascript means these ads can do anything at any time and change into malware. Other than adding some technical guardrails, the best practice would be to ban bad actors (of which many are known and usually the same shady people) but many large adtech companies look the other way because it makes money and they have no consequences.

Malware and adfraud is primarily a business problem, not a technical one.

Re:Why is Stack Overflow trying to start audio? by mikeash on Wednesday June 26, 2019 @09:18PM (#20290944)
So, don't allow them to run JavaScript. That's not necessary, just convenient.
Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @10:29PM (#20291259)
See my other comment for how it all works: https://news.ycombinator.com/item?id=20290673

It's not that simple. There are many layers in the supply chain that currently requires JS. Publishers can't disable the JS and they can't demand JS-free creatives either.

Re:Why is Stack Overflow trying to start audio? by mikeash on Wednesday June 26, 2019 @10:39PM (#20291302)
Of course it’s that simple. Don’t let ads run JS. Done.

You’re saying that doing this would drastically decrease ad revenue. Which is what I’m saying too: it’s about money, not necessity.

Would a site like SO be unable to survive without ads that run arbitrary JS? I don’t know. Even if the answer is that they must do this to survive, it’s still insane that content companies let randos inject arbitrary code into their pages. If this is so entrenched in the industry that there’s no way around it, that just means the industry is insane.

Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @10:48PM (#20291339)
Money is a necessity, that's how SO exists, and it wouldn't sustain its current size if it required JS-free network campaigns or tried to sell all ad space directly.

Simple doesn't mean it's easy or realistic. Yes, adtech has major problems but they're being slowly worked on and won't change overnight. This applies to any other industry where you think can just walk in and solve everything if everyone just did X. Reality doesn't work that way.

Re:Why is Stack Overflow trying to start audio? by mikeash on Wednesday June 26, 2019 @11:00PM (#20291405)
We know that advertising can work and make money without arbitrary JS. When there’s a clear existence proof, is it really wrong to say that a problem could be solved by not doing the problematic behavior?

Of course reality doesn’t work that way. Ad companies aren’t going to change, because they like money and don’t give a shit about users.

We’re stuck in a local minimum. It’s insane. It could be easily fixed if everyone just stopped doing the insane things. And they won’t stop.

Re:Why is Stack Overflow trying to start audio? by scarface74 on Wednesday June 26, 2019 @11:12PM (#20291439)
Maybe the business model of ExpertsExchange where they charged money wasn’t such a bad idea....
Re:Why is Stack Overflow trying to start audio? by manigandham on Thursday June 27, 2019 @01:44AM (#20292017)
The fact that everyone uses StackOverflow and nobody uses ExpertsExchange seems to say otherwise.
Re:Why is Stack Overflow trying to start audio? by aerique on Thursday June 27, 2019 @07:44AM (#20293532)
Well, my browser hasn't been running JS for ages and more people are going to do that. If the business isn't going to fix it, users will.

And yes, I'm enjoying my 90's internet and enable JS when it is needed (rarely) for specific domains.

Re:Why is Stack Overflow trying to start audio? by pushpop on Friday June 28, 2019 @02:16AM (#20301917)
Yet adverts on porn sites do operate as per our wish list:

* adverts are vetted by a human

* adverts are not allowed to inject JavaScript.

There have been a few interesting blog posts from businesses outside of the adult entertainment industry where they discuss just how work is involved in getting an advert approved on adult sites.

It’s a sad state of affairs when an adblocker is less required on porn sites than it is on Stack Overflow.

Re:Why is Stack Overflow trying to start audio? by manigandham on Thursday July 04, 2019 @04:18PM (#20357443)
All major ad networks audit every single creative. The problem is javascript can change at anytime, and the publisher is the most exposed and also the most removed to be able to discover and mitigate. There have been some movements to whitelist the JS providers but volume is incentivized so most networks look the other way for now.

Adult ads are definitely not better and are served by even looser networks that allow anything. That industry has pioneered things like popunders, clickjacking, and monetizing every possible action on a window while serving as the primary vector for malware and browser bitcoin mining. I'm not sure what blog posts you've read but the only strict standards they would have is on getting paid.

Re:Why is Stack Overflow trying to start audio? by pushpop on Monday July 08, 2019 @06:00PM (#20387185)
Like everything, it depends on the sites in question. Disreputable adult sites aren’t going to be any better nor worse than disreputable sites of any other content. However adult sites run as a reputable business - of which there are many - most certainly do follow the points I described earlier.

What you’re effectively doing is looking at Source Forge and then arguing that Github, Gitlab and Bitbucket are all probably just as bad.

Re:Why is Stack Overflow trying to start audio? by wdr1 on Wednesday June 26, 2019 @10:46PM (#20291332)
Or -- the more expensive ads don't justify the ROI, meaning advertisers don't buy them, meaning fewer ads, but less content.
Re:Why is Stack Overflow trying to start audio? by simongr3dal on Wednesday June 26, 2019 @07:44PM (#20290468)
If you can't manage to oversee it because of the scale you don't deserve to take advantage of the scale.
Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @08:13PM (#20290610)
That sounds nice but is neither realistic or even sensible. There are other solutions like sandboxing to prevent access to features, it's not an unsolvable problem.
Re:Why is Stack Overflow trying to start audio? by bamboozled on Wednesday June 26, 2019 @08:22PM (#20290667)
Well I would argue if billions will see the content, that gives more reason to have it checked over before serving no?
Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @08:34PM (#20290735)
Billions? No single creative is seen by that many. In fact, with dynamic creative optimization (DCO) and all the optimization that happens, you can easily get creatives that are custom generated and only see by a few individuals or even a single person.
Re:Why is Stack Overflow trying to start audio? by luckylion on Thursday June 27, 2019 @01:56AM (#20292059)
The comment was referencing the parent: Digital ad impressions number in the billions with 10s of millions of ad creatives
Re:Why is Stack Overflow trying to start audio? by manigandham on Thursday June 27, 2019 @04:06PM (#20298126)
I wrote both comments. There are billions of impressions but a single creative is not seen by that many. The point is that the scale is too large to validate on the publisher side.
Re:Why is Stack Overflow trying to start audio? by pushpop on Friday June 28, 2019 @01:39AM (#20301777)
It seems to me there are two solutions to this problem:

* remove the ability for 3rd parties to abuse their automatic powers (ie disable their ability to inject JavaScript)

* or have a human manually vet every creative

The problem here is you neither want to control their access nor take responsibility for monitoring their access. So the blame equally lies with yourselves for not managing an easily exploitable vector of attack.

If this were any other system, eg VPN, security professionals would tear you a new asshole and point out just how irresponsible your lack of management is.

You’re only excuse here is greed and frankly I’m disgusted.

Re:Why is Stack Overflow trying to start audio? by manigandham on Thursday July 04, 2019 @04:21PM (#20357457)
Major ad networks already vet every creative. The problem is javascript which can change at anytime. Banning javascript in creatives is not a technical problem, it's a business and politics problem. Same with just about every other issue in adtech.

I'm not sure who you think I am or why you're accusing me but none of this is down to a single person.

Re:Why is Stack Overflow trying to start audio? by Ajedi32 on Thursday June 27, 2019 @09:43AM (#20294239)
I think this comment[1] on the linked Meta question explains it pretty well:

> To the people confused why ads need to run their own Javascript (even ones that are just static images): The short answer is that Ad Networks do not and cannot trust website operators. They need to run their own JavaScript served from their own servers in order to verify that a real user saw the ad and for how long, and they can't trust the website operator to tell them. And these pieces of JavaScript tend to be more invasive and privacy-destroying than the website's JS because they care, far more than the actual website does, that the "user" is not a bank of iphones in a sweatshop in China.

[1]: https://meta.stackoverflow.com/questions/386487/why-is-stack...

Re:Why is Stack Overflow trying to start audio? by wlesieutre on Wednesday June 26, 2019 @07:43PM (#20290461)
Not just arbitrary JavaScript, arbitrary JavaScript where they can’t easily even see where it came from! Sheesh.

Could we require advertisers to sign their ad code to have a trail of where it came from, prevent tampering, and make it easier to pull the plug on bad actors?

The people bearing the costs of the internet ad economy aren’t the people in any position to do anything about it. So there’s very little pressure to fix anything.

Maybe if the US government started threatening to enact something like GDPR unless the a democratic industry gets its shit together.

Re:Why is Stack Overflow trying to start audio? by manigandham on Wednesday June 26, 2019 @09:18PM (#20290945)
Large adtech demand/sell side platforms do not want to remove these bad actors because they make money on percentage of spend. They are incentivized to increase volume and ad spend at all costs, and there is no regulation to stop them from doing otherwise by continuing to deal with shady companies and known malware techniques.
Re:Why is Stack Overflow trying to start audio? by m0dest on Thursday June 27, 2019 @01:00AM (#20291880)
Re:Why is Stack Overflow trying to start audio? by lol768 on Thursday June 27, 2019 @03:50AM (#20292477)
This is not a solution. JS still runs, it just has limited access to certain features.

You also need to somehow <iframe> the ad content (and serve it from somewhere else with the feature policy header set/attribute on the iframe set) or else sacrifice use of these features on your own site.

The solution is to make the ads inert. They do not need to run code.

Re:Why is Stack Overflow trying to start audio? by _eht on Wednesday June 26, 2019 @09:32PM (#20290996)
Why are you allowing arbitrary JavaScript to run on your device?
Re:Why is Stack Overflow trying to start audio? by colanderman on Wednesday June 26, 2019 @11:32PM (#20291535)
Sites like StackOverflow require JavaScript to work (or at least, to work in a manner approaching interactivity). So, even someone who disables JavaScript normally, would presumably enable it in order to use this popular and useful site. Furthermore – and importantly – they place trust in StackOverflow not to abuse the privilege of executing arbitrary JavaScript. That is an entirely reasonable thing for a technically savvy modern web user to do.

By serving this ad with JavaScript not vetted to StackOverflow's presumed standard, StackOverflow has violated that trust. Thus the onus is on them, not the user, to remove the offending ad or risk damaging their brand.

Honestly, what you said is like saying "why would you ever not keep a hand on your wallet" after someone got pickpocketed in a nice restaurant. Reasonable people have reasonable expectations of safety in certain places which they trust to provide it for them. No-one should go around being constantly paranoid of pickpockets everywhere, no more than anyone on the web should be constantly paranoid of malicious JavaScript even on sites with established records of safety.

Re:Why is Stack Overflow trying to start audio? by DCoder on Thursday June 27, 2019 @02:44AM (#20292242)
> So, even someone who disables JavaScript normally, would presumably enable it in order to use this popular and useful site.

I agree that StackOverflow is at fault here, but enabling JS is not a binary choice — "allow all JS on this site" vs "block all JS on this site" are not your only options.

Tools like uMatrix allow me to control JS coming from different domains on different domains independently. For example, on SO I have enabled JS from Stack Exchange and related domains, but not from Google or other snoopers.

Re:Why is Stack Overflow trying to start audio? by zhangjunphy on Wednesday June 26, 2019 @10:51PM (#20291355)
Revenues are important. The users will not notice unless something happens. And when something happens they forget fast.
Re:Why is Stack Overflow trying to start audio? by runn1ng on Wednesday June 26, 2019 @08:51PM (#20290817)
More money that way