mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2024-11-10 14:52:00 +00:00
Forgot to check for windows-style path seperator in precaution against directory traversal abuse.
This commit is contained in:
parent
503c0a22c6
commit
9af85d9378
1 changed files with 1 additions and 1 deletions
|
@ -1445,7 +1445,7 @@ void CL_NextDownload(void) {
|
|||
s = localName + strlen(localName); // point at the nul byte
|
||||
|
||||
// Make sure the server cannot make us write to non-quake3 directories.
|
||||
if(strstr(localName, "../"))
|
||||
if(strstr(localName, "../") || strstr(localName, "..\\"))
|
||||
{
|
||||
Com_Error(ERR_DROP, "CL_NextDownload: Invalid download name %s", localName);
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue