summaryrefslogtreecommitdiff
path: root/builtin/commit-graph.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2024-03-26 14:37:25 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2024-04-17 22:30:04 +0200
commite8d0608944486019ea0e1ed2ed29776811a565c2 (patch)
tree9dec3da0e9dbd56955d0a65f07016779986c88a3 /builtin/commit-graph.c
parenteafffd9ad417bdf0a3c63e5276d5a18f563cd291 (diff)
submodule: require the submodule path to contain directories only
Submodules are stored in subdirectories of their superproject. When these subdirectories have been replaced with symlinks by a malicious actor, all kinds of mayhem can be caused. This _should_ not be possible, but many CVEs in the past showed that _when_ possible, it allows attackers to slip in code that gets executed during, say, a `git clone --recursive` operation. Let's add some defense-in-depth to disallow submodule paths to have anything except directories in them. Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Diffstat (limited to 'builtin/commit-graph.c')
0 files changed, 0 insertions, 0 deletions