
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
go.eigsys.de/go-vast
Go package to parse, manipulate and build Digital Video Ad Serving Templates (VAST). The currently supported version is VAST 4.2.
go get -u go.eigsys.de/go-vast
CDATA
handling of encoding/xml
The encoding/xml
package merges CDATA
sections with surrounding text.
This can lead to unexpected results when parsing VAST files.
Consider the following example:
<JavaScriptResource>
<![CDATA[https://verificationcompany1.com/verification_script1.js]]>
</JavaScriptResource>
After parsing JavaScriptResource
, the value is:
\n https://verificationcompany1.com/verification_script1.js\n
If you need the content without the Unicode spaces, consider using strings.TrimSpace()
.
For more information, see #43168.
A complete list of examples is available in the package reference.
package main
import (
"go.eigsys.de/go-vast"
)
func main() {
example := vast.New()
example.Version = vast.VAST42Version
}
package main
import (
"go.eigsys.de/go-vast"
"log"
"os"
)
func main() {
handle, err := os.Open("vast.xml")
if err != nil {
log.Fatalf("%v", err)
}
example, err := vast.Read(handle)
if err != nil {
log.Fatalf("%v", err)
}
}
package main
import (
"go.eigsys.de/go-vast"
"log"
)
func main() {
example := vast.New()
exampleBytes, err := example.Bytes()
if err != nil {
log.Fatalf("%v", err)
}
}
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
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.