News for hackers. Stuff that matters.
Re:See what JavaScript commands get injected through an in-a... by paxys on Thursday August 18, 2022 @08:45PM (#32516545)
They do a lot more than that.

> TikTok iOS subscribes to every tap on any button, link, image or other component on websites rendered inside the TikTok app.

> TikTok iOS uses a JavaScript function to get details about the element the user clicked on, like an image (document.elementFromPoint)

And that's just a sample of the calls the author was able to find.

Re:See what JavaScript commands get injected through an in-a... by hackernewds on Friday August 19, 2022 @03:13AM (#32518280)
This seems perfectly reasonable btw. The extension to the in-app browser existing and logging non-tiktok browsing is troublesome.

Perhaps Apple should ban in-app browsers? But what about Safari? Apple itself collects and benefits from Safari data for its ad product

Re:See what JavaScript commands get injected through an in-a... by soheil on Thursday August 18, 2022 @08:59PM (#32516625)
If I build an analytics company and build a product that my customers can use to "analyze" their users activity it'd almost be a total neglect on my end not to include common tracking mechanisms that are well documented like simple event hooks in js. I really don't get the rage against tiktok.

What they do that is publicly known is not bad. Maybe there is something bad they're doing but these random HN top stories are not it. If NSA/US govt really wants us to avoid tiktok it needs better convincing than "omg they're stealing the x,y of your finger when you tap on an image."

Re:See what JavaScript commands get injected through an in-a... by ytpete on Friday August 19, 2022 @02:14AM (#32517982)
You're writing as if this is just analytics tracking a user's actions in their own UI. It's not! This is tracking actions users take, and data users enter, on 3rd-party websites.

That is not "what happens in Tiktok's app," as you put it in your reply. It may be hosted "in" the app in a technical sense, but the typical user who is fullscreen viewing a totally different website may not feel like they are "in" the app at all. I wouldn't bet that most users even get that there's a distinction between an in-app browser vs. opening a tab in the main OS browser (on Android at least, the back gesture takes you back to the app either way). Users almost certainly doesn't expect the original app to be able to read passwords and other text that they type on those 3rd-party sites.

Re:See what JavaScript commands get injected through an in-a... by soheil on Friday August 19, 2022 @11:00AM (#32521851)
And how do we know Instagram and yelp are not doing something similar? If you have in app browser you can track user activity much more invasively. That’s not an argument against tiktok, that’s an argument against in app browsers. If you’re so concerned with user privacy ask Apple to remove that functionality from all apps instead of slyfully picking and choosing the apps to attack.
Re:See what JavaScript commands get injected through an in-a... by infinityio on Wednesday August 24, 2022 @12:56PM (#32582275)
Instagram does do the same thing afaik
Re:See what JavaScript commands get injected through an in-a... by mr_toad on Thursday August 18, 2022 @09:24PM (#32516756)
If you sold a phone that sent call details back to the manufacturer you’d likely get locked up.

Tik tok are not a party to these communications, and they’re not a carrier or service provider. What they’re doing is wire tapping.

Re:See what JavaScript commands get injected through an in-a... by xvector on Thursday August 18, 2022 @10:03PM (#32516959)
TikTok is not a browser and has zero obligation to provide private communications. What you do inside TikTok's app is quite literally TikTok's business.
Re:See what JavaScript commands get injected through an in-a... by jker on Thursday August 18, 2022 @10:29PM (#32517081)
But when you click a link in the TikTok app, TikTok opens an in-app browser for you to view it in - and that’s where it’s gathering all the information. It’s a deceptive practice, since most users won’t realize that they’re not simply surfing a website as usual.
Re:See what JavaScript commands get injected through an in-a... by int_19h on Friday August 19, 2022 @02:33AM (#32518081)
Not only that, but per the article, TikTok is the only popular app that does this while not providing an option to open the link in regular browser from within the built-in one.
Re:See what JavaScript commands get injected through an in-a... by soheil on Friday August 19, 2022 @12:20PM (#32522965)
This is just an idiotic statement. Almost all social media apps do this. In addition apps like Yelp do this to the determent of business owners.
Re:See what JavaScript commands get injected through an in-a... by soheil on Friday August 19, 2022 @12:21PM (#32522984)
Did you just wake up today after reading this article and learned about the existence of in-app browsers? This is a common practice by almost all social media apps.
Re:See what JavaScript commands get injected through an in-a... by hef19898 on Thursday August 18, 2022 @10:11PM (#32516998)
You are aware of the various privacy laws in a lot of countries?
Re:See what JavaScript commands get injected through an in-a... by soulofmischief on Thursday August 18, 2022 @10:27PM (#32517078)
Unfortunately, the issue of consent is extremely muddy as it's easy to argue that the average person is not informed enough about the issue at hand, and so they have improperly developed expectations when engaging with the TikTok browser.

Lack of consent and lack of transparency, make this whole thing pretty messed up.

Re:See what JavaScript commands get injected through an in-a... by QuadmasterXLII on Friday August 19, 2022 @09:33AM (#32520738)
surely slurping up passwords at least seems ominous?
Re:See what JavaScript commands get injected through an in-a... by soheil on Thursday August 18, 2022 @10:13PM (#32517008)
What happens in tiktok app is very much tiktok's business and their IP.

Are you possibly conflating tiktok tracking its own users within its app with somehow it gaining access to the OS itself and tracking users at that level? That is clearly not happening as far as what is publicly known as much as stories like this want you to believe for it to be the case.

Re:See what JavaScript commands get injected through an in-a... by wruza on Friday August 19, 2022 @05:19AM (#32518954)
It makes sense when you’re a slick lawyer appealing to technicalities, but in reality users don’t know how their devices work and where borders of an app are. If tiktok was a restaurant, we would talk about its restroom surveillance here. It may not collect too private information like passwords or messages, but the doubt is reasonable.
Re:See what JavaScript commands get injected through an in-a... by tinus_hn on Friday August 19, 2022 @06:50AM (#32519453)
Would consider it right for a browser to snoop on every page opened, every link clicked, every character typed and send it to the cloud without informing the user?
Re:See what JavaScript commands get injected through an in-a... by soheil on Friday August 19, 2022 @12:25PM (#32523029)
No my point is why single out tiktok when every other social app is doing the same exact thing for all we know in their in-app browsers. Just because the researcher in this particular article happened to go after tiktok?
Re:See what JavaScript commands get injected through an in-a... by tinus_hn on Friday August 19, 2022 @02:33PM (#32524540)
Why not use an example if you know they are doing it, if you don’t have time to lookup what all the others are doing? Its a pretty weak defense that everyone else is doing the same wrong thing.
Re:See what JavaScript commands get injected through an in-a... by soheil on Friday August 19, 2022 @06:24PM (#32526740)
It's not a defense, I'm simply asking why is everyone pilling on tiktok over some javascript trickery just bc they're deemed an enemy of the state by our all mighty government?