{"exploit":{"id":"EDB-4814","name":"Bitweaver R2 CMS - Arbitrary File Upload / Disclosure","description":"Bitweaver R2 CMS - Arbitrary File Upload / Disclosure","cves":["CVE-2007-6651","CVE-2007-6650"],"author":"BugReport.IR","published":"2007-12-30","platform":"php","type":"webapps","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/4814","path":"exploits/php/webapps/4814.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-4814.txt","vulnerabilities":[{"id":"CVE-2007-6651","state":"PUBLISHED","title":null,"titleSource":null,"description":"Directory traversal vulnerability in wiki/edit.php in Bitweaver R2 CMS allows remote attackers to obtain sensitive information (script source code) via a .. (dot dot) in the suck_url parameter.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-6651","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-6651"},"updatedAt":"2024-08-07T16:18:19.246Z","retrievedAt":"2026-11-27T15:24:22.653Z","stale":false,"error":null},{"id":"CVE-2007-6650","state":"PUBLISHED","title":null,"titleSource":null,"description":"Unrestricted file upload vulnerability in fisheye/upload.php in Bitweaver R2 CMS allows remote attackers to upload arbitrary files by using the image/gif content type, and possibly other image and PDF content types, as demonstrated by uploading a .htaccess file.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2007-6650","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-2007-6650"},"updatedAt":"2024-08-07T16:11:06.094Z","retrievedAt":"2026-11-27T15:24:16.078Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-4814.png?v=2","url":"https://exploitbin.com/exploits/EDB-4814","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-4814/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-4814/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"########################## WwW.BugReport.ir #########################\n#\n#      AmnPardaz Security Research Team\n#\n# Title: Bitweaver R2 CMS\n# Vendor: http://www.bitweaver.org\n# Bugs: source code disclosure, arbitrary file upload\n# Vulnerable Version: 2 (prior versions also may be affected)\n# Exploitation: Remote with browser\n# Fix Available: No!\n################################################################\n\n\n####################\n- Description:\n####################\n\nBitweaver is an open source content management system. Its speed and power are ideal for large-scale community websites and corporate applications, but it is simple enough for non-technical small site users to set up and administrate.\n\n####################\n- Vulnerability:\n####################\n\n+--> arbitrary file upload\n\nCode Snippet:\n\n/fisheye/upload.php line#32-45\n\n\t$i = 0;\n\tforeach( array_keys( $_FILES ) as $key ) {\n\t\tif( preg_match( '/(^image|pdf)/i', $_FILES[$key]['type'] ) ) {\n\t\t\t$upImages[$key] = $_FILES[$key];\n\t\t\tif( !empty( $_REQUEST['imagedata'][$i] ) ) {\n\t\t\t\t$upData[$key] = $_REQUEST['imagedata'][$i];\n\t\t\t} else {\n\t\t\t\t$upData[$key] = array();\n\t\t\t}\n\t\t} elseif( !empty( $_FILES[$key]['tmp_name'] ) && !empty( $_FILES[$key]['name'] ) ) {\n\t\t\t$upArchives[$key] = $_FILES[$key];\n\t\t}\n\t\t$i++;\n\t}\n\nIt's possible to upload arbitrary files with image/gif content-type (this can be changed via local proxy or direct content altertion)\nalso its possible for an attacker to bypass \"/storage/.htaccess\" restriction by uploadding his own .htaccess and control server settings.\n\n\n+-->source code disclosure\n\nCode Snippet:\n\n/wiki/edit.php line#179-195\n\nif( isset( $_REQUEST[\"suck_url\"] ) ) {\n\t// Suck another page and append to the end of current\n\trequire_once( UTIL_PKG_PATH.'htmlparser/html_parser_inc.php' );\n\t$suck_url = isset( $_REQUEST[\"suck_url\"] ) ? $_REQUEST[\"suck_url\"] : '';\n\t$parsehtml = isset( $_REQUEST[\"parsehtml\"] ) ? ( $_REQUEST[\"parsehtml\"] == 'on' ? 'y' : 'n' ): 'n';\n\tif( isset( $_REQUEST['do_suck'] ) && strlen( $suck_url ) > 0 ) {\n\t\t.\n\t\t.\n\t\t.\n\t\t$sdta = @file_get_contents( $suck_url );\n\nPOC: http://localhost/bitweaver/wiki/edit.php?page=SandBox&suck_url=./../kernel/config_inc.php&do_suck=h\n\n####################\n- Credit :\n####################\nOriginal Advisory:http://www.bugreport.ir/?/24\nAmnPardaz Security Research Team\nContact: admin[4t}bugreport{d0t]ir\nWwW.BugReport.ir\nWwW.AmnPardaz.com\n\n# milw0rm.com [2007-12-30]","sha256":"508020523efc705d149226b564715123853e17616a4fd6bfcce01ac207de86c2","bytes":2419,"fetchedAt":"2026-11-27T15:10:53.299Z","encoding":"utf-8 (display only; download retains original bytes)"}