-
Notifications
You must be signed in to change notification settings - Fork 85
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
Prevent TrojanSourceInjection in gitk #70
Comments
Or simply inlining the example right here: string access_level = "user";
if (access_level != "user") //Check if admin
{
Console.WriteLine("You are an admin.");
} (Taken from here https://dev.to/dotnetsafer/rip-copy-and-paste-from-stackoverflow-trojan-source-solution-4p8f ) Yes, the code that you see above is NOT what it looks like. In reality |
This is being addressed in the upstream git source. see https://lore.kernel.org/git/[email protected]/ |
@PhilipOakley do you/we know how exactly it is addressed? |
Hi! Could
gitk
(and if possiblegit gui
) please implement protections against "trojan source injection"?In short, as a developer that reviews other people's code (and potentially decides on merging),
I would like to see the code and diffs in a safe way that protects me from said attack.
E.g. if somebody submits malicious merge request to my repo, I want to see that from
gitk
/git gui
.Example of such source code can be seen here:
https://blog.rust-lang.org/2021/11/01/cve-2021-42574.html
Missing this type of injection could be catastrophic
The text was updated successfully, but these errors were encountered: