We presented a low-precision spectrum for HI Leo, TESS data for V523 Cas, and new photometry for two K-type contact binaries. Comparing their light curves with different observing dates, we found small intrinsic variabilities, such as variable amplitudes for HI Leo and the varying heights around the second maxima for V523 Cas. By the Wilson-Devinney Code, we deduced six photometric solutions. The dark spot inV523 Cas may appear on the surface on the more massive component on BJD2458768, while it disappears on BJD 2458779. Our results indicate that two binaries are W-type shallow-contact binaries (f<10%). From the eclipse timing residuals, we found that the orbital periods may continuously increase, accompanied by one to two light-time effects due to additional bodies. Their modulated periods and semi-amplitudes are 25.8(+/-1.0)yr and 0.0066(6)d for HI Leo, 114.8(+/-2.0)yr and 0.0448(12)d, 18.89(+/-0.14)yr and 0.0025(2)d for V523 Cas, respectively. The orbital period secularly increases at a rate of dP/dt=2.86(+/-0.11)10^{-7}d/yr for HI Leo and dP/dt=3.45(+/-0.07)10^{-8}d/yr for V523 Cas, which may be attributed to mass transfer from the secondary to the primary. With mass transferring, the shallow-contact binaries, HI Leo and V523 Cas, will evolve into the broken-contact configurations.