Onions and garlic are known air purifiers and when applied to the skin topically they kill germs and bacteria but also the phosphoric acid (the substance from onions that makes you cry when you cut them open) enters the bloodstream it helps to purify the blood and kill any bacteria or germs that may be festering waiting to give you the flu.
source [1]