From an old exam question:
Consider this existential forgery attack on ElGamal. Choose $u$, and $v$ such that $\operatorname{gcd}(v, p - 1) = 1$.
Compute $r := y^v g^u \mod p$ and $s := -r·v^{-1} \mod (p-1)$. (Recall that $y := g^x \mod p$.)
$s$ will be used as part of the forged signature.
(a) Prove that $σ = (m, r, s)$ is a valid signature for $m := s^u \mod (p-1)$.
(b) Suppose that a secure hash function $h$ is used and the signature must be valid for $h(m)$ instead of $m$. Explain how this protects against existential forgery.