It could be kidneys, and it could be another internal injury.
Blood coming out of anywhere is uncommon and is a sure sign for the vet.
This is not something that could be solved on the internet, consult a vet as soon as possible. The dog might be in pain.