Is this hole at the corner of the foundation major issue?
You may want to ask whether the hole is for a sump pump that removes water from the basement in wet weather - it could exist specifically to prevent further water issues (such as the one that caused the water marks) in the basement, in which case, filling it in would be inadvisable.