Security
Headlines
HeadlinesLatestCVEs

Headline

CVE-2018-25059: Merge pull request #3 from ilyaglow/security-fix · jessfraz/pastebinit@1af2fac

A vulnerability was found in pastebinit up to 0.2.2 and classified as critical. Affected by this issue is the function pasteHandler of the file server.go. The manipulation of the argument r.URL.Path leads to path traversal. Upgrading to version 0.2.3 is able to address this issue. The name of the patch is 1af2facb6d95976c532b7f8f82747d454a092272. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-217040.

CVE
#vulnerability

@@ -10,6 +10,7 @@ import (

“io/ioutil”

“net/http”

“os”

“path”

“path/filepath”

“strings”

@@ -172,7 +173,7 @@ func (cmd *serverCommand) pasteHandler(w http.ResponseWriter, r *http.Request) {

return

}

filename := filepath.Join(cmd.storage, strings.Trim(r.URL.Path, “/”))

filename := filepath.Join(cmd.storage, filepath.FromSlash(path.Clean("/"+strings.Trim(r.URL.Path, “/”))))

var handler func(data []byte) (string, error)

@@ -213,7 +214,7 @@ func (cmd *serverCommand) pasteHandler(w http.ResponseWriter, r *http.Request) {

// check if the file exists

if _, err := os.Stat(filename); os.IsNotExist(err) {

writeError(w, fmt.Sprintf("No such file or directory: %s", filename))

writeError(w, fmt.Sprintf("No such file or directory: %s", r.URL.Path))

return

}

Related news

GHSA-cwh7-28vg-jmpr: pastebinit Path Traversal vulnerability

A vulnerability was found in pastebinit up to 0.2.2 and classified as problematic. Affected by this issue is the function pasteHandler of the file server.go. The manipulation of the argument `r.URL.Path` leads to path traversal. Upgrading to version 0.2.3 can address this issue. The name of the patch is 1af2facb6d95976c532b7f8f82747d454a092272. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-217040.

CVE: Latest News

CVE-2023-50976: Transactions API Authorization by oleiman · Pull Request #14969 · redpanda-data/redpanda