Many control methods have been studied on the assumption that the feet of biped robots contact the ground with four points. However, it is difficult for almost all of such biped robots to maintain four-point contact on uneven terrains because they have rigid and flat soles. In order to solve the problem, foot mechanisms should be studied. In 2003, we developed WS-1R (Waseda Shoes - No.1 Refined) which is able to maintain four-point contact. However, it is difficult to deal with the concave or convex ground because of the problems of the contact detection and sideways slip. So, WS-5 (Waseda Shoes - No.5) has been developed. To avoid the slip of the foot, a cam-slider locking system consisting of a solenoid and a cam is constructed and installed at the foot. Also, linear encoders are employed to measure the position of the foot sliders. Through walking experiments on uneven terrains, the effectiveness of WS-5 is confirmed.