EotvosCollegium / mars

Audit required: Use of an insecure hashing function PHP-A1004
Security
Critical
5 months ago2 years old
147    {
148        $renderedLatex = view($path)->with($data)->render();
149
150        $filename =  md5(rand(0, 100000) . date('c'));151        Storage::disk('latex')->put($filename . '.tex', $renderedLatex);
152
153        $outputDir = Storage::disk('latex')->path('/');
Use of insecure md5() function found
308    {
309        $path = $file->storePubliclyAs(
310            '',
311            md5(rand(0, 100000) . date('c')) . '.pdf',312            'printing'
313        );
314        $path = Storage::disk('printing')->path($path);