by controversial97 · 2y ago · 0 comments
A smart TV would accept a firmware update from a file on a standard USB stick.
The TV reads the file start to finish to check the digital signature then reads it again to update.
A device that is pretending to be a USB storage device can send a manufacturer firmware file the first time then send your unofficial firmware after.
https://en.m.wikipedia.org/wiki/Time-of-check_to_time-of-use
if(check(resource)) {
use(resource);
}
is already vulnerable, unless you somehow make the entire piece of code run atomically.