4 ms·
Burried quite far into the article: "the researchers admit, they also had to take some serious shortcuts in their proof-of-concept that verge on cheating. Rath
by jacquesm 5y ago
Burried quite far into the article:
"the researchers admit, they also had to take some serious shortcuts in their proof-of-concept that verge on cheating. Rather than exploit an existing vulnerability in the fqzcomp program, as real-world hackers do, they modified the program's open-source code to insert their own flaw allowing the buffer overflow."
I think they should leave out the verge. But it is an interesting thing to think about, that you can encode DNA with the specific intent to cause a buffer overflow in a vulnerable program. But not this one.
- tantalor 5y agoYeah, adding `if(<my-input>) { <bug> }` to the code first is definitely cheating.
- scintill76 5y agoThat seems uncharitable; it was not that trivial of a cheat. They inserted a realistic type of vulnerability that was not specific to their test. > we first copied fqzcomp from https://sourceforge.net/projects/fqzcomp/and https://sourceforge.net/projects/fqzcomp/and inserted a vulnerability into version 4.6 of its source code; a function that processes and compresses DNA reads individually, using a fixed-size buffer to store the compressed data. This modification lets us perform a buffer overflow with a longer than expected DNA read in order to hijack control flow. While the use of such a fixed-size buffer is an obvious vulnerability, we note that fqzcomp already contains over two dozen static buffers. > The modified fqzcomp program contained a buffer too small for the 177 base pair read length, so it would overflow after processing the first read. https://www.usenix.org/system/files/conference/usenixsecurity17/sec17-ney.pdf https://www.usenix.org/system/files/conference/usenixsecurit...
- busymom0 5y agoI think your link should be: https://sourceforge.net/projects/fqzcomp/ https://sourceforge.net/projects/fqzcomp/ needs a space before "and".
- amelius 5y agoBut any program that takes input is potentially vulnerable to this kind of attack. I honestly don't get the point. Also, one solution seems simple: run the software inside a virtual machine.
- simonh 5y agoIf the attack is to e.g. get the software to report a different gene sequence to the real one, this isn't going to help you. For example you might encode such an attack to mask the gene sequence of a viral weapon.
- amelius 5y agoYes, that's a good point.
- scintill76 5y agoI guess the point is to prove this novel attack vector. And they found interesting things that don't always show up in a buffer attack: there are certain restrictions on patterns that can be viably encoded physically, parallel sequencing can chunk up the input in unpredictable ways, the input might be read backwards by the sequencer.
- Firadeoclus 5y ago> While the use of such a fixed-size buffer is an obvious vulnerability, we note that fqzcomp already contains over two dozen static buffers. It should be noted that "static buffers" are not per se a vulnerability. This sentence reads like they equate the two.
- new299 5y agoI used to work in the office next to James'. Don't know how he feels about it, but this seemed pretty unfair to be honest. It's an experimental codebase released by an academic institute. I think he originally wrote it for one of the DNA data compression competitions? If this was in something one of Illumina's tools, on a platform that is used for diagnostics (some of their platforms have FDA approval). Then I think this would be fairer... but it's not, and they probably didn't do that because it would be too much work. As it stands, they might as well have written their own buggy tool and exploited it to be honest.
- jacquesm 5y agoAgreed. They should have put that bit front and center and not buried at the bottom somewhere, besides it totally invalidates their claim.
- dataviz1000 5y agoThe University of Minnesota's EECS department would like the challenge of injecting this malicious code into OSS undetected. (I'm being sarcastic.)