I came across this scenario recently and would like to understand if there are any practical attacks against this implementation.
An RSA private key is used to "encrypt" data. The public key is included in a software component distributed to users and is used to "decrypt" this data. I’m aware that this offers no confidentiality, however it does prevent the data being tampered with, as users have no access to the private key.
"Decryption" is done using the exponent and modulus extracted from the public key, and uses the Java ModPow function.
Given that the plaintext is known and no padding is used, are there any practical attacks which would allow the private key to be recovered, or for chosen plaintext to be "encrypted"?