Do the MITM attack again, but play with "g". What happens with:
Write attacks for each.
When does this ever happen?
Honestly, not that often in real-world systems. If you can mess with "g", chances are
you can mess with something worse. Most systems pre-agree on a static DH group. But
the same construction exists in Elliptic Curve Diffie-Hellman, and this becomes more