News for hackers. Stuff that matters.
Re:Google has a secret browser hidden inside the settings by londons_explore on Monday June 26, 2023 @07:37AM (#36478384)
Is this different than any other embedded webview? Doesn't nearly every app somewhere have an embedded webview somewhere for things like "view privacy policy", where it is often much easier to display html than sending the whole privacy policy to your app developer?
Re:Google has a secret browser hidden inside the settings by Aulig on Monday June 26, 2023 @07:42AM (#36478432)
Yea, I think that's all it is.
Re:Google has a secret browser hidden inside the settings by dannyw on Monday June 26, 2023 @07:57AM (#36478551)
The webview appears to have privileged JS functions for password manager key management and recovery.
Re:Google has a secret browser hidden inside the settings by jve on Monday June 26, 2023 @08:04AM (#36478615)
> appears

Until someone confirms that they are what the name and what the speculation is about.

Re:Google has a secret browser hidden inside the settings by brazzy on Monday June 26, 2023 @08:01AM (#36478597)
> Is this different than any other embedded webview?

Yes - it exposes an API to set device encryption keys to the websites that you visit with it- At least that's how I interpret the last section "The dangerous functions".

Re:Google has a secret browser hidden inside the settings by ceejayoz on Monday June 26, 2023 @08:02AM (#36478605)
Do normal embedded webviews also bypass parental controls? If so, that seems like a massive issue.
Re:Google has a secret browser hidden inside the settings by jeroenhd on Monday June 26, 2023 @08:14AM (#36478700)
Embedded webviews were the easiest parental control bypass on Windows since about Windows 98. I've played so many flash games through the documentation for Microsoft Word!

I can't find any information anywhere that either confirms or denies the possibility to bypass Google's restrictions with web views. I assume it's possible, because it's possible on most platforms, but I suppose it depends on the implementation.

I've seen parental controls that employ an (on-device) MitM proxy and DNS filtering to ensure safety, and those apps will prevent almost any app from displaying unwanted content.

Re:Google has a secret browser hidden inside the settings by Tyr42 on Monday June 26, 2023 @08:12AM (#36478687)
Normally they are fixed to one domain.
Re:Google has a secret browser hidden inside the settings by ceejayoz on Monday June 26, 2023 @10:30AM (#36480070)
Right, but if I've banned youtube.com in parental controls, it'll still load in, say, a Mastodon client with an in-app browser for opening links?
Re:Google has a secret browser hidden inside the settings by littlestymaar on Monday June 26, 2023 @08:03AM (#36478613)
If any app that has an embedded webview allows to bypass parental control, then this is an even bigger bug in Android…

(without even talking about this key management stuff, because at this point it's merely speculation as the author didn't test what they actually do: “you have two methods which I don’t know what they do, but they sound scary”)

Re:Google has a secret browser hidden inside the settings by berkes on Monday June 26, 2023 @08:08AM (#36478652)
Can you visit arbitrary websites using such webviews? I never managed to.

And IIRC it's rather difficult to set up a webview that allows multiple domains or URLs (but I'm no android dev, and the last time I had to fiddle with this, was years ago)

Re:Google has a secret browser hidden inside the settings by jeroenhd on Monday June 26, 2023 @08:15AM (#36478710)
The reason it works here is that this particular webview opens a Google page that links to Google.com. There is no address bar so any safe browsing enforcement will make it at least two steps harder to access most had content.

Blocking external domains shouldn't be that hard, but I also don't think parental controls are of any interest or priority for most app developers.

Re:Google has a secret browser hidden inside the settings by berkes on Monday June 26, 2023 @11:50AM (#36481364)
Last time I fiddled with it, was when we moved domains and our webviews stopped working. They i) did not follow the redirects we had in place, and ii) did not allow loading the new URL without whiltelisting that domain/url somewhere in the source-code.

IIRC whitelisting was the default in webviews; not sure if it still is, or if our expert Android dev configured it this way, but even getting a build that allowed to load content from our new domain required a new build. (Let alone that someone, even if we had links or such in our about.html, would be able to navigate there).

Re:Google has a secret browser hidden inside the settings by Asooka on Tuesday June 27, 2023 @10:31AM (#36493391)
Please use "allowlist" instead of "wh_telist".
Re:Google has a secret browser hidden inside the settings by bigger_inside on Wednesday June 28, 2023 @03:23AM (#36503423)
huh? why? is there a bot checking for this word? will it get someone in trouble?
Re:Google has a secret browser hidden inside the settings by KingMachiavelli on Monday June 26, 2023 @01:45PM (#36483116)
It'd be pretty simple to enforce sandbox/parental controls for the integrated webview browser.

1. Just limit the webview browser location to the same list as allowed by the parental control.

2. By default limit the webview browser location to the domain first opened by the app i.e locked to a single domain by default.

3. Allow webview browser to be expanded via a regex/pattern list of domains.

4. Limit the number of webview browser location changes so even if you can access a search engine with a global domain allowlist, it would just return to the first page after N window.location changes.

There's plenty of introspection you can do via JS (which is already being used to set/inject that `mm` object), it could even check for certain DOM elements, HTTPS fingerprint, etc. to determine if the page is an "intended" destination for the particular integrated webview browser.

Re:Google has a secret browser hidden inside the settings by marionauta on Monday June 26, 2023 @08:31AM (#36478874)
It's possible. I remember one app that opened a webview to their terms of use page, which somewhere had a link to a Google page, which I could use to go to Google search. So, no direct URL input, but you could go to any website indexed.
Re:Google has a secret browser hidden inside the settings by yonatan8070 on Monday June 26, 2023 @10:07AM (#36479814)
Or find a website like the mobile JS console people mentioned in this thread to link yourself anywhere, indexed or not
Re:Google has a secret browser hidden inside the settings by berkes on Monday June 26, 2023 @11:54AM (#36481427)
IIRC webview, by default, requires a dev to whitelist domains. Maybe that has changed, IDK.

But finding an example where you can navigate elsewhere is not proof that all webviews are broken; maybe they have this "security issue" by default and allow a dev to tighten it (bad sec. practice IMO), and maybe android versions or SDK-versions differ in how they adhere, IDK. But the times that I encountered this and fiddled with it, it was a PIAS to even allow loading a page from another domain.

Re:Google has a secret browser hidden inside the settings by tweakor on Monday June 26, 2023 @08:44AM (#36479002)
That's exactly what this is. It's Android System Webview, the embedded browser that apps use when they aren't a browser themselves.
Re:Google has a secret browser hidden inside the settings by bmicraft on Monday June 26, 2023 @12:27PM (#36481928)
Sorry, but how is this news then? The Google settings have never felt native and therefore were almost certainly a browser for a very long time now
Re:Google has a secret browser hidden inside the settings by dgellow on Monday June 26, 2023 @05:01PM (#36485797)
Why does it have to be news? Someone wanted to share what they found, that’s what personal blogs are for. Nothing more.
Re:Google has a secret browser hidden inside the settings by Kailhus on Monday June 26, 2023 @05:45PM (#36486301)
Well, that neither news or “secret”. Nice find though
Re:Google has a secret browser hidden inside the settings by type0 on Monday June 26, 2023 @08:02PM (#36487478)
It probably was news for many of HN readers. Hidden would be a right term, I suspect that English isn't Matans native language
Re:Google has a secret browser hidden inside the settings by matan-h on Tuesday June 27, 2023 @04:55AM (#36490509)
correct
Re:Google has a secret browser hidden inside the settings by low_tech_punk on Monday June 26, 2023 @06:05PM (#36486529)
Well, "news" is defined by the upvotes on HN ¯\_(ツ)_/¯
Re:Google has a secret browser hidden inside the settings by lifeonlars on Tuesday June 27, 2023 @06:00AM (#36490903)
"Hacker News"
Re:Google has a secret browser hidden inside the settings by OrangeMusic on Tuesday June 27, 2023 @06:45AM (#36491169)
Yeah to be honest the presence of this article on the Best section of HN makes it look a lot more interesting than it really is. It's just a WebView...
Re:Google has a secret browser hidden inside the settings by TX81Z on Monday June 26, 2023 @09:20AM (#36479347)
I used to be able to do the same thing in iTunes years ago as a laugh. I don’t see how this is a huge deal.