News for hackers. Stuff that matters.
Re:MailChimp blacklists your IP if you open the browser's de... by djbusby on Monday March 20, 2023 @02:47PM (#35236608)
When you open devtools, by default it will try to load source code maps for your JS and CSS.

Very simple for a system to detect the request for the map file.

If that's their vector turn off the autoloader and try from a clean IP.

Re:MailChimp blacklists your IP if you open the browser's de... by bilekas on Monday March 20, 2023 @03:42PM (#35237479)
This is interesting as for a hackathon i was thinking of ways to identify this behavior too.

The source map requests was a more successful option. Also played around with "snap" resize but it was too agressive.

As for whatever the reason MailChimp would block your up is pretty ridiculous.

Re:MailChimp blacklists your IP if you open the browser's de... by status200 on Monday March 20, 2023 @04:07PM (#35237834)
I can only imagine the amount of security pressure they feel since they are basically a backdoor into easily stealing one or more company identities once you pass the 2FA, with full address books of customers that will trust emails deployed through MC campaigns and blindly click on links in the emails sent out, so I am guessing they err on the side of caution and have tons of false positives instead of letting anything pass through or disrupt.
Re:MailChimp blacklists your IP if you open the browser's de... by zamadatix on Monday March 20, 2023 @02:55PM (#35236733)
Interesting to note. In Firefox "show original sources" seems to be enabled by default but in Chrome at least the settings checkbox is labeled "Allow DevTools to load resources, such as source maps, from remote file paths. Disabled by default for security reasons" and unchecked for me. Haven't checked Safari to see what its behavior is.
Re:MailChimp blacklists your IP if you open the browser's de... by djbusby on Monday March 20, 2023 @03:19PM (#35237147)
Hmm, I'm on Chrome 111 on Linux and there are two boxes for loading maps - one for JS and one for CSS.

Could yours be a Windows Group Policy from $WORK?

Re:MailChimp blacklists your IP if you open the browser's de... by zamadatix on Monday March 20, 2023 @03:52PM (#35237624)
I have 3 boxes: "Enable JavaScript source maps", "Enable CSS source maps", and "Allow DevTools to load resources, such as source maps, from remote file paths. Disabled by default for security reasons". The first 2 are checked but without the 3rd trying to load source maps doesn't seem to do anything unless I have them locally. It's very possible I'm just testing it wrong, I don't use source maps often. It's also very possible Firefox does something similar and I'm just overlooking the option/behavior there.
Re:MailChimp blacklists your IP if you open the browser's de... by djbusby on Monday March 20, 2023 @04:24PM (#35238106)
Our Chrome are the same - and load the maps by default.
Re:MailChimp blacklists your IP if you open the browser's de... by iudqnolq on Monday March 20, 2023 @04:19PM (#35238028)
Unfortunately console.log(foo) calls foo.toString() if and only if the console is open, and there is no way to disable this in Chrome or Firefox.
Re:MailChimp blacklists your IP if you open the browser's de... by joeframbach on Monday March 20, 2023 @05:24PM (#35238985)
Theoretically you could also write a bookmarklet that could inspect or modify globals. Or a greasemonkey script.
Re:MailChimp blacklists your IP if you open the browser's de... by iudqnolq on Monday March 20, 2023 @05:50PM (#35239281)
You could also fork Chrome.
Re:MailChimp blacklists your IP if you open the browser's de... by quickthrower2 on Monday March 20, 2023 @06:41PM (#35239879)
You could also fuck Mailchimp
Re:MailChimp blacklists your IP if you open the browser's de... by iudqnolq on Monday March 20, 2023 @07:51PM (#35240588)
I stopped using them years ago for other reasons. We're talking about how to do research into their fuckery here, I'm not suggesting it's sane to fork a browser to make a company's crapware work.
Re:MailChimp blacklists your IP if you open the browser's de... by easrng on Monday March 20, 2023 @07:18PM (#35240246)
I can't repro, how are you getting it to call toString?
Re:MailChimp blacklists your IP if you open the browser's de... by iudqnolq on Monday March 20, 2023 @07:49PM (#35240559)
const foo = () => {}

foo.toString = () => console.warn("called")

console.log(foo)

Re:MailChimp blacklists your IP if you open the browser's de... by easrng on Tuesday March 21, 2023 @02:02PM (#35249951)
Doesn't work on Firefox.
Re:MailChimp blacklists your IP if you open the browser's de... by deecewan on Monday March 20, 2023 @08:42PM (#35241009)
This is not true, at least in Chrome. I've tried with an object with the `toString` property set, and tried with a function with an updated prototype. In both cases, Chrome just...displays the object.
Re:MailChimp blacklists your IP if you open the browser's de... by iudqnolq on Monday March 20, 2023 @08:49PM (#35241078)
I just ran the poc I posted in this sibling comment[1] on Chrome Version 111.0.5563.65.

[1]: https://news.ycombinator.com/item?id=35240559

Re:MailChimp blacklists your IP if you open the browser's de... by chatmasta on Monday March 20, 2023 @04:29PM (#35238194)
Similarly, here are some techniques for debugger detection [0]. I've seen some crypto mining malware in the wild that did this to make deobfuscation more difficult.

[0] https://x-c3ll.github.io/posts/javascript-antidebugging/

Re:MailChimp blacklists your IP if you open the browser's de... by Karellen on Monday March 20, 2023 @07:21PM (#35240295)
TIL about source code maps.

...and how to disable them from auto-loading.

I mean, okay, I can see how they definitely have a use. But to try and auto-fetch js and css maps just because I want to have a look at the DOM?

Why not wait until I actually try looking at js/css? Or even until I ask to see the source map?

Prefetching never feels right to me. Even though I know GET requests are supposed to be side-effect free and idempotent (and if they're not, that's a choice by the server devs and they'd better have covered all the edge cases where clients correctly act as if they are...), it has the architectural equivalent of a "code smell" to my nose.