In the realm of online games, an exploit is usually a software bug, hack or bot that contributes to the user's prosperity in a manner not intended by the developers.
What is or is not considered an exploit varies between games and developers. The EULA (End-User License Agreement) typically states what type of gameplay is not acceptable. Thus, some developers may consider AFK gameplay to be an exploit, while others may not.