There are two possible candidates for the largest right pyramid, with rectangular base, inscribed in a cuboid. The most obvious is the "upright" one, having as base a face of the cuboid and as vertex the center of the opposite face. The volume of this pyramid is ${1\over3}abc$, where $a$, $b$ and $c$ are the cuboid dimensions.
The other possible candidate is the "slanted" one, which reaches its greatest volume when its vertex $V$ is the midpoint of an edge (see diagram below: of course you need $FB\ge BC$). But it turns out that the volume of such a pyramid is, once again, ${1\over3}abc$.

The reason for that can also be seen in the plane: blue and red isosceles triangles in figure below have the same area, for any rectangle. Indeed, if blue triangle has base $a$ and altitude $b$, then red triangle has base $b$ (right side of the rectangle) and altitude $a$.

And inscribed isosceles triangles not having a side in common with the rectangle have lower area, as can be seen in the two examples above: if we divide each triangle into two smaller triangles with the dashed line, taken as common base, then the sum of the altitudes is $\le a$ and the base is $\le b$.