Bail out if file path is outside the temp repo or inside the '.git/' folder. This avoids data leak and unauthorized changes in files or git config.
Vulnerability discovered by Thomas Chauchefoin thomas@chauchefoin.fr
Fixes: rhbz#2278745, rhbz#2280725, rhbz#2280723, CVE-2024-4981
Signed-off-by: Dominik Wombacher dominik@wombacher.cc
Metadata Update from @wombelix: - Request assigned
Patch reviewed and validated in Bugzilla. Tests performed locally, all passed.
rebased onto 2803a7ac66636153865e9238e48018b90ace0999
Pull-Request has been merged by wombelix
Bail out if file path is outside the temp repo or inside the '.git/' folder.
This avoids data leak and unauthorized changes in files or git config.
Vulnerability discovered by Thomas Chauchefoin thomas@chauchefoin.fr
Fixes: rhbz#2278745, rhbz#2280725, rhbz#2280723, CVE-2024-4981
Signed-off-by: Dominik Wombacher dominik@wombacher.cc