News for hackers. Stuff that matters.
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by goatinaboat on Sunday April 18, 2021 @07:17AM (#26851527)
I think what we will (need) to see in coming time is more security awareness wrt. development tooling and setup.

Management at a former employer quite rightly freaked out when they realised that their devs on a certain subcontinent were routinely pasting their code into external web-based prettifiers to format it nicely...

Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by thinkharderdev on Sunday April 18, 2021 @07:52AM (#26851688)
Ha. I bet if you were so inclined you could harvest a gold mine of sensitive information by having a public website which did:

1. JSON prettifying

2. JWT decoding/verification (bonus for "paste your signing key and we will generate JWTs for you too!")

3. PEM <-> DER conversion

Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by cddotdotslash on Sunday April 18, 2021 @08:33AM (#26851877)
The amount of valid JWTs that jwt.io could have harvested by this point is incredible to even consider.
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by nerdponx on Monday April 19, 2021 @11:08AM (#26863553)
As per my sibling comment - we need easier/better CLI and/or offline GUI tools for simple stuff like this.
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by thinkharderdev on Monday April 19, 2021 @01:33PM (#26865580)
Yeah, I use bloop personally which is great for this stuff.
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by nerdponx on Monday April 19, 2021 @04:54PM (#26867878)
I've never heard of it. Is there a webpage or source repo?
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by thinkharderdev on Tuesday April 20, 2021 @09:51AM (#26874654)
Sorry, it's boop not bloop. Source is at https://github.com/IvanMathy/Boop
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by nerdponx on Sunday April 18, 2021 @12:27PM (#26853835)
In my experience, relying on "prettifier" websites is directly a result of the lack of canonical, well-supported CLI tools for prettifying most programming and markup languages. It's such a weird glaring gap in dev tooling.

I'd love to see "standard" prettifiers for HTML, CSS, JSON, YAML, and TOML. The required libraries exist and the problem isn't terribly hard if you aren't picky about corner cases. I'm sure countless programmers have written such tools already. Where is the disconnect?

Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by goatinaboat on Sunday April 18, 2021 @01:17PM (#26854328)
In my experience, relying on "prettifier" websites is directly a result of the lack of canonical, well-supported CLI tools for prettifying most programming and markup languages. It's such a weird glaring gap in dev tooling.

There's a CLI linter for pretty much every language I've used, but how would you prettify a valid YAML file? Any reformatting will change it semantically.

Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by sundbry on Monday April 19, 2021 @01:13AM (#26859290)
You just parse and reserialize it. The trick is handling comments.
Re:Codecov breach impacts GoDaddy, Atlassian, P&G etc. by dathinab on Monday April 19, 2021 @04:24PM (#26867557)
Don't underestimate YAML and not fully compliant YAML parsers(1) and sterilizer's with everything but nice results.

(1): Which can be necessary to prevent accidental problems like NO defaulting to false not "NO" and similar. I personally strongly recommend against anything where string quotes are optional for human written/edited serialization formats (and comments are a must have).