Twitter | ಹುಡುಕು | |
Sebastian Lekies
Tech Lead - Web Application Security Scanning
798
ಟ್ವೀಟ್‌ಗಳು
229
ಹಿಂಬಾಲಿಸುತ್ತಿರುವವರು
883
ಹಿಂಬಾಲಕರು
ಟ್ವೀಟ್‌ಗಳು
Sebastian Lekies ಜನ 28
legacy is not the point that I am trying to make. Twitter sucks for these discussions.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
again:I am not saying we can't do this.I am not at all oposing the idea. Just saying we need to be careful
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
just wanted to add one data point to the discussion and not oppose the general idea.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
and I am saying that not all ways will as seen with the many hacks due to innerHTML.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
No, I am saying we should harden in a way that FWs play nicely with it.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
yes, definetly. I am the last one to argue against hardening. Just brought up one important issue.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
and it is not easy to fix ;-).
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
not only strict-dynamic, also unsafe-eval, which is required for most frameworks.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
every single one is a CSP bypass btw
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
then we should choose a hardening way that will not lead to these hacks
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
we should look at them to understand why these hacks are in place.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
I can show you dozens of examples where the current behavior of innerHTML led to hacks in libraries.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
I am not saying that at all. Just saying we need to take this into account to not get it wrong.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
I was thinking more about the default behavior. But if security is inconvenient, no one will adopt it.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
these hacks are also not introduced against the devs intend, but for the opposite.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
if the API does not fullfill the needs, devs will hack around it. Also innerHTML is not a safe, hardened API.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
I can show you a few PoCs next time we meet.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
if you want to strengthen CSP allow scripts in innerHTML and libraries will not implement insecure code for not surprising devs.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
that's why jquery and other libraries have magic html() methods to replace innerHTML with a function that also executes scripts.
Reply Retweet ಇಷ್ಟಪಡಿ
Sebastian Lekies ಜನ 28
devs expect that inner_HTML_ executes all of HTML and not just a subset.
Reply Retweet ಇಷ್ಟಪಡಿ