My foot started hurting a few weeks ago, just on the outside of my right foot. It feels like a bump is on the inside, and it hurts worst when I walk on it.
You could have an inflamed peroneus brevis tendon. This tendon runs along the outside of the foot and attaches on the top of the toes on the outside of the foot. The cure for it is ice and rest and gentle stretching.
There's also something called cuboid syndrome. This can occur if your feet over pronate - that is roll inwards - when you walk causing the cuboid bone to shift out of place. That bone is to be rotated back in.
Bear in mind that most cases of foot pain are caused by poor shoes. If you're wearing shoes that don't provide you with ample cushioning or are squeezing your feet then they to be the problem. If your feet are rolling inwards as you walk then different shoes or custom orthotics can help. Good luck!