News for hackers. Stuff that matters.
Re:Password protect a static HTML page by password11 on Saturday February 18, 2023 @02:12PM (#34850032)
> Or... you can have a more nuanced viewpoint

The nuanced viewpoint is never implement your own cryptography.

> Its so stupid simple I don't think that even a novice would make a critical error.

Ask Microsoft about that one: https://learn.microsoft.com/en-us/security-updates/securityb...

Re:Password protect a static HTML page by dragontamer on Saturday February 18, 2023 @02:14PM (#34850058)
That's a Padding Oracle vulnerability, not a CBC error.
Re:Password protect a static HTML page by tptacek on Saturday February 18, 2023 @02:19PM (#34850108)
It's a CBC padding oracle, intrinsic to the operation of CBC --- if you PKCS7-pad some other mode, you do not get the same attack --- the single best-known cryptographic vulnerability on the Internet, and the parent commenter took the time to give you the most famous instance of it. For the record: that's also not the only CBC vulnerability.
Re:Password protect a static HTML page by password11 on Saturday February 18, 2023 @02:18PM (#34850095)
Padding is an important part of CBC.
Re:Password protect a static HTML page by dragontamer on Saturday February 18, 2023 @02:37PM (#34850264)
There is a huge difference.

A padding oracle attack can attack any system that uses CBC + padding, even when CBC is perfectly implemented.

What I asked for earlier was a vulnerability due to an improper implementation of CBC.

Re:Password protect a static HTML page by tptacek on Saturday February 18, 2023 @02:53PM (#34850382)
No, to all of this.
Re:Password protect a static HTML page by bawolff on Saturday February 18, 2023 @08:22PM (#34853087)
By that metric all security vulnerabilities can be explained away as a fault in a different part of the system.
Re:Password protect a static HTML page by IncRnd on Saturday February 18, 2023 @10:09PM (#34853870)
> Furthermore, padding oracles are completely irrelevant to data at rest, like as described in this topics use case. So it really is a bit of a non sequitur too.

That's not true and extremely dangerous to say. In an offline, black-box scenario no server is needed for a padding-oracle. You are thinking of a side-channel oracle. A padding-oracle attack can absolutely be feasible in many cases.

Re:Password protect a static HTML page by dragontamer on Saturday February 18, 2023 @11:03PM (#34854231)
I appreciate your efforts at actually elevating this discussion. Yes, I said something too general when I really was just trying to describe _this_ particular HTML-page encryption implementation.

You're right that its possible that an offline decryption algorithm could in fact be a padding oracle under the right scenario. But I still posit it probably doesn't apply to this static-HTML page generator.

Re:Password protect a static HTML page by l33t233372 on Saturday February 18, 2023 @09:22PM (#34853544)
The padding is a key part of using a block cipher in CBC mode.

I’m not sure why you’re ferociously defending the practice of implementing your own cryptography. It’s well known that this is a horrible idea for good reason.