cyberplace.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
Cybersecurity, fandom, video games, technology, dog photos and most importantly, you.

Server stats:

961
active users

I’ve bookmarked this thread so it doesn’t auto delete the toots, put it that way. You could just automate spraying the internet with this one.

@GossiTheDog o_O what in hades is this abomination?

@GossiTheDog Ah viewstate, best of intentions and the worst of implementations 😃

@GossiTheDog The dangers of exposing ViewState encryption keys (or encryption oracles) were popularized at least by 2010 because of the padding oracle fixed with MS10-070:

https://web.archive.org/web/20101225182433/http://netifera.com/research/poet//PaddingOraclesEverywhereEkoparty2010.pdf

Similar attacks can be executed against frameworks that also protect stateless session data with encryption/MAC's, see CVE-2018-15133 of Laravel:

https://mogwailabs.de/en/blog/2022/08/exploiting-laravel-based-applications-with-leaked-app_keys-and-queues/

We've been hunting for web.config's during pentests too - the latest exploit I remember must've been written around last December by teammate based on a file read vuln exposing web.config.

So yeah, don't expose your private keys... If you do, that's not the problem of the crypto system (or ASP.NET in this case).
web.archive.orgWayback Machine

@buherator @GossiTheDog There's long list of "default" secret keys used for JWT and session cookies collected in various github projects. Similarly on Ruby on Rails, Django the secret session key can lead to RCE through unmarshalling. JWT can give you admin role etc.

github.com/wallarm/jwt-secrets

GitHubGitHub - wallarm/jwt-secretsContribute to wallarm/jwt-secrets development by creating an account on GitHub.

@GossiTheDog MS Defender alerts if it finds configs with those leaked keys. Quite useful

@mttaggart @GossiTheDog Some recurring themes in these repos are 1) abandonware 2) test/training code

Also, TIL you can use boolean expressions, e.g. you can filter for autogenerated keys:

https://github.com/search?q=%3CmachineKey+validationkey+path%3Aweb.config+NOT+autogenerate&type=code