Wondering what is this kind of attack. Go through the amazing writeup of this bug discovered by Alex Birsan
And for your understanding in simple and common language you can browse the below link .
https://0xsapra.github.io/website//Exploiting-Dependency-Confusion