Serve
/ ServeFS
GO-S1035A directory listing is inappropriately exposed using
github.com/gin-gonic/gin
's Serve
/ ServeFS
, yielding potentially sensitive
information to attackers.
package main
import (
"github.com/gin-gonic/gin"
)
func main() {
router := gin.Default()
router.Static("/static", "./static")
}