Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudtrail__csv_injection via send-ssh-keys #459

Open
jkotrady opened this issue Dec 3, 2024 · 1 comment
Open

cloudtrail__csv_injection via send-ssh-keys #459

jkotrady opened this issue Dec 3, 2024 · 1 comment

Comments

@jkotrady
Copy link

jkotrady commented Dec 3, 2024

Hello, I discovered that using send-ssh-keys via AWS, as documented here one can send anything to the AWS. AWS has some verification that given string is or is not public ssh key, but it do not have this verification for Cloudtrail. I discovered, that if you send whatever (even AAAAAAAAAA) via send-ssh-keys API/CLI, it will be logged in cloudtrail (whatever you will send there, will be logged 1 to 1). We can use this to create new testing scenario, similar to cloudtrail__csv_injection, or others.

AWS do not consider this as a security problem, therefor, lets add this as feature.

It is in a request field of cloudtrails logs, :

{"instanceld": "i-0.....7", "instanceOSUser": "ec2-user", "sSHPublicKey":
"Aа0Aa1Aa2Aа3Aa4Aа5Aa6Aa7Aa8Аa9Ab0Ab1Ab2Ab3Ab4Ab5Ab6Ab7Ab8Ab9Aс0Aс1Ac2Ac3Aс4Ac5Ac6Ac7Ac8Ac9Ad0Ad1Ad2Ad3Ad4Ad5Ad6Ad7Ad8Ad9Ae0Ae1Ae2Ae3Ae .... 
@jkotrady jkotrady changed the title cloudtrail__csv_injection via send-ssh-keys cloudtrail__csv_injection via send-ssh-keys Dec 3, 2024
@DaveYesland
Copy link
Collaborator

This seems like a good idea to add to the module. Is this something you were interested in making a pull request for?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants