Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
github.com/diegosantosws/cms
CMS USING Go!
System is just a content manager for sites with few pages. The installation part is being developed.
By default system runs on the port http://localhost:3000/
After creating the database, access the file conexao.go and change connection data for your username and password
URL: http://localhost:3000/install
After performing the install, set whether the system created the tables correctly, if not, you have created copy the code that is in the root and run in your database. after that, just access, the URL: http://localhost:3000/ enter your username and password.
func Upload(w http.ResponseWriter, r *http.Request) {
r.ParseMultipartForm(32 << 20)
files, handler, err := r.FormFile("uploadfile")
if err != nil {
fmt.Println(err.Error())
return
}
defer files.Close()
//fmt.Fprintf(w, "%v", handler.Header)
//New name from file
namenewFile := time.Now().Format("02012006150405") + handler.Filename
f, err := os.OpenFile("assets/uploadfile/"+namenewFile, os.O_WRONLY|os.O_CREATE, 0666)
if err != nil {
fmt.Println(err.Error())
return
}
defer f.Close()
io.Copy(f, files)
idcontent, err := strconv.Atoi(r.URL.Path[12:])
if err != nil {
fmt.Println(err.Error())
}
s := fmt.Sprintf("/conteudo/%d", idcontent)
http.Redirect(w, r, s, 302)
}
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.