To pull this off you need write access to Firefox's SQLite database.
If you have write access to Firefox's SQLite database you've already 'won', the system is already yours. You can do a lot more damage to the system than whitelisting a Firefox extension.
Sure you could argue that this is another place for malware to hide - but I don't that this is really a security flaw in Firefox.