Language: Go
Label: vulnerable
CWE: CWE-287 \u2014 Improper Authentication
When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.

Code:
func getSystemInfo(w http.ResponseWriter, r *http.Request) {
	//updateAvailable, err := util.CheckUpdate()

	//if err != nil {
	//	helpers.WriteError(w, err)
	//	return
	//}

	body := map[string]interface{}{
		"version": util.Version,
		//"update":  updateAvailable,
		"ansible": util.AnsibleVersion(),
		"demo":    util.Config.DemoMode,
	}

	helpers.WriteJSON(w, http.StatusOK, body)
}