1nwf / Produx-v2

Poor file permissions used when creating a directory GSC-G301
Security
Major
1 occurrence in this check
Expect directory permissions to be 0750 or less
37		return c.Status(400).JSON(fiber.Map{"error": err.Error()})
38	}
39	postId := uuid.NewString()
40	err := os.Mkdir("./public/"+userInfo.Name+"/"+postId, 0755)41	if err != nil {
42		return c.SendStatus(fiber.StatusInternalServerError)
43	}