Better HN
topnewbestaskshowjobs
Log inSign up

userbinator

91,632 karma · joined Dec 8, 2013 (12y ago) · 22,278 submissions

Make Software Great Again
Submissions

comment 2d ago · link · parent

has to be considered exploitable by an LLM

Then someone should do the needful and ask one to generate an exploit.

Otherwise it's just a bunch of hot air to stir up paranoia.

"Put your money where your mouth is", as the saying goes.

comment 2d ago · link · parent

Nowadays you're getting gray area stuff like new AI generated stories based in the Harry Potter universe

Fanfiction has always existed, albeit in written form, but copyright takedowns are almost unheard of. The gray area is definitely getting bigger, and AI is effectively showing everyone that everything is a derivative work to some extent. I suspect we'll see a massive shift in the general sentiment around IP in the near future.

comment 2d ago · link · parent

disassembly (computationally cheap)

Only if you do "straight line" disassembly. On the other hand, code/data separation is extremely intensive, especially when indirect branches are involved, and approaches a decompiler in computational effort.

comment 4d ago · link · parent

Turning this into an attack on the language with otherwise nonsense arguments is how I know you're an ideological bully not worth arguing with, just like the ones who called this nothingburger a 9.8.

comment 4d ago · link · parent

Students in this workshop learned basic CAD skills and reverse-engineering of an object into a 3D model.

I wonder if this skill is one that comes naturally for some people, but is difficult and/or nonintuitive for others; perhaps it's related to the ability to imagine and mentally manipulate 3D objects in one's own mind, and translate between that and a 2D view. In the last century, when AutoCAD was one of the most pirated warez along with Photoshop, I had no trouble using the former to model various things I happened to have around, with just a bit of exploratory play and some reading of the online help.

comment 4d ago · link · parent

If you mean ceil(inlen * 4/3) + 1 (even if you use exact arithmetic), then you are passing too small a buffer and you will overflow.

If you let untrusted input reach inlen and overflow that computation, you have already failed:

https://news.ycombinator.com/item?id=50570319

comment 4d ago · link · parent

I think tiny pieces of isolated code like this function simply cannot be assigned CVSS scores, because it's missing all the context and threat model around how it is used.

Then again, given that I once had to respond to a report which assigned a similar amount of severity to the strlen() function claiming that it will read beyond its bounds if its input is missing a null terminator (DUH!), I'm not surprised at the lack of critical thought among a certain population in this industry.

comment 4d ago · link · parent

takes an input buffer and output buffer of differing lengths, the right API has the caller pass both lengths.

If there is no fixed relationship between the two, then that makes sense; but in this case there is a very simple and well-defined relationship between them. But to specify two lengths which must always agree; and if not, then what? You've effectively invented an additional artificial error condition, an additional branch, and burdened all the callers up the chain to do something, which is a treacherous path to complexity and the production of even more bugs.

Or are you just preaching the same mindless idiocy that lead to Microsoft's memcpy_s() (the "s" is for "stupid")?

comment 4d ago · link · parent

The question can be reduce to "who do the length validation".

At the boundary where untrusted input becomes trusted. This is commonly known as the sanitisation/validation layer.

comment 4d ago · link · parent

I think CVSS 9.8 is exaggerated. This is not remotely anywhere near as serious as Heartbleed. It's an internal function which will fail if its input is far too long, but exploitability rests on how untrusted input can reach it; the key word being "untrusted". E.g. if you operate a base64 encoding service on the Internet that just reads all the data into memory at once and calls EVP_EncodeBlock(), that's exploitable. If you have a protocol that involves a block of data with a 16-bit length field which is passed to EVP_EncodeBlock(), that's 100% safe.

For those wondering about TLS: speaking as someone who has written a TLS implementation, AFAIK neither base64 encoding nor decoding occurs in the protocol itself, and the longest length field is 24 bits (Hello stream). Certificate processing involves ASN.1 which does support arbitrarily-long integers, but that's a big hint to check that they're within a sensical range.

comment 4d ago · link · parent

if the input is larger than ~1.5GB.

...on a system where ints are 32 bits. The bottom line is that this doesn't appear to be easily exploitable and IMHO it should be the callers of EVP_EncodeBlock which need to be inspected to determine the actual risk.

using a nontrivial formula

It's base64. 4/3 expansion; round it up and add padding. What's "nontrivial" about that?

and the caller does not pass in the output buffer length, so the implementation cannot validate it

Not necessary, because the caller is responsible for allocation.

comment 4d ago · link · parent

What's "horrendous"? I don't see anything which stands out as being wrong. It specifies exactly the lengths of input and output.

gets(), on the other hand, that is "horrendous".

comment 4d ago · link · parent

I call it Imaginary Property.

comment 5d ago · link · parent

Yes, and it's also consistent with normal bit numbering: bit n has place value 2^n, while byte n has place value 256^n. The vast majority of BE processors actually have LE bit numbering.

The only exception is IBM, which used both BE bit and byte numbering. (Bit 0 is the most significant bit, and its value depends on the width of the data in question --- exposing the major disadvantage of BE, i.e. a length-dependent term.)

An old adage I've heard and found useful: "Little endian is Logical; Big endian is Backwards."

comment 5d ago · link · parent

The amount of logic required for real mode is absolutely tiny compared to the rest of the CPU, and changing it in any way does have the very real risk of breaking something unintentionally:

https://www.os2museum.com/wp/will-the-real-real-mode-please-...

http://www.os2museum.com/wp/maximum-overkill/

comment 5d ago · link · parent

Imagine developers using abliterated models and fixing these issues before releasing any more code.

comment 5d ago · link · parent

Fortunately, there are companies where the exact opposite would happen.

comment 5d ago · link · parent

HTTP/2 again, not surprisingly. The curse of complexity strikes again. When I first saw the spec, I knew it would be far more difficult to implement correctly than 1.1 or 1.0. While 1.x is not ideal either (parsing a protocol that involves free-form text with no fixed limits is always a bit scary), at least it has a much smaller attack surface.

On the bright side, perhaps "security review" of code which involves throwing it at an AI and fixing what it finds before releasing will become a normal practice.

"There are two ways of constructing a software design: One way is to make it so simple that there are obviously no deficiencies, and the other way is to make it so complicated that there are no obvious deficiencies." - C.A.R. Hoare

comment 1w ago · link · parent

my internet goes down for 15 seconds once every 16 hours with no discernible pattern

Actually that's exactly the type of complaints I've heard from those who upgraded to FTTH. My understanding is that fiber is a lot more fragile than copper, and installation and testing requires significantly more expensive equipment, although it is cheaper for longer distances and theoretically capable of higher bandwidth (but the transceivers on each end are also a significant part of the cost.)

comment 1w ago · link · parent

They should be advertising numerical up/down bandwidths, volumes, and prices.

comment 1w ago · link · parent

While Comcast has deployed plenty of fiber throughout the US, its cable Internet service makes the final connection to homes with coaxial cable. This results in upload speeds being far slower than download speeds. In contrast, fiber-to-the-home service can provide symmetrical upload and download speeds.

You can get symmetric DOCSIS, and apparently Comcast do offer that service[1]. Likewise, FTTH can be asymmetric if they set the traffic shaping that way. IMHO the only things that matter to the average user about an Internet connection are bandwidth, volume, and availability. As long as it terminates in WiFi or a standard Ethernet connector and passes IP traffic at the rate I paid for, I personally don't care what the physical infrastructure beyond the demarc is.

In fact, anecdotes from a few people I know have been that service interruptions actually increased after they upgraded to FTTH from DOCSIS.

[1] https://corporate.comcast.com/press/releases/comcast-multi-g...

comment 1w ago · link · parent

The irony being that they're effectively wishing sites and services would become more inefficient so they can justify the amount of bandwidth they're selling.

comment 1w ago · link · parent

You can vibe-slop an identical app/service to get another US$25M or more

Probably not, now that everyone realises they could do it themselves with AI.

comment 1w ago · link · parent

This has been in my HOSTS file for a while:

    0.0.0.0 cdn.optimizely.com
...and now I have another reason to keep it there.

comment 1w ago · link · parent

Why do LLMs still produce such unusually awkward phrases, despite being trained on human English?

comment 1w ago · link · parent

Now there's an incentive for more to appear.

comment 1w ago · link · parent

I'd be interested to see what a from-basic-principles simple and efficient OS and programming system might look like.

UNIX. Seriously. Look at what it could do with 1970s era hardware, that was unmatched even when DOS came out in the early 80s.

comment 1w ago · link · parent

It doesn't help that, for possibly aerodynamic reasons, headlights on new cars have become "squinty" instead of the large lenses they used to have, which concentrates the intensity at a small point instead of a more diffuse area. The driver sees the same amount of light, but oncoming traffic sees far more intense and distracting points than the soft glowing blobs they used to be.
12345
743