Given an RSA public key $(n,e)$ and the textbook-RSA encryption $c$ of a valid matching private exponent $d$, computed as $c\gets d^e\bmod n$: can we factor $n$ ?
Assume $n,e,d$ are per PKCS#1v2.2. If that helps, additionally assume any common (or not overly unlikely) condition helping towards a solution, e.g.:
- $n$ product of two large primes $p$ and $q$
- $d=e^{-1}\bmod\varphi(n)$ where $\varphi$ is the Euler totient
- $d=e^{-1}\bmod\lambda(n)$ where $\lambda$ is the Carmichael function
- $e$ small, perhaps just $e=3$
- $e$ prime
- $\gcd(p-1,q-1)=2$
- $q<p<2q$
Motivation is this question, which I could only partially answer.
Problem is, textbook RSA encryption is conjectured secure for random secret plaintext. Random secret implies independent of the key, except for public modulus magnitude. Independent of the key is not met when encrypting $d$. As rightly pointed there, we are in unsafe territory. And for some plaintexts dependent on the private key, that would be totally unsafe. Example: if we reveal the encryption of $p$, that is $c'\gets p^e\bmod n$, we can decipher that as $p\gets \gcd(c',n)$. Other examples: revealing the encryption of $9\,q$ or of $d^d\bmod n$ breaks the security.