Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Penetration Tester help needed this is the code and I've found vulnerability from joomscan for Kali what to do next ?????
- <?php
- /**
- * @version $Id: admin.admin.html.php 12694 2009-09-11 21:03:02Z ian $
- * @package Joomla
- * @subpackage Admin
- * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
- * @license GNU/GPL, see LICENSE.php
- * Joomla! is free software. This version may have been modified pursuant
- * to the GNU General Public License, and as distributed it includes or
- * is derivative of works licensed under the GNU General Public License or
- * other free or open source software licenses.
- * See COPYRIGHT.php for copyright notices and details.
- */
- // no direct access
- defined( '_JEXEC' ) or die( 'Restricted access' );
- /**
- * @package Joomla
- * @subpackage Admin
- */
- class HTML_admin_misc
- {
- function get_php_setting($val)
- {
- $r = (ini_get($val) == '1' ? 1 : 0);
- return $r ? JText::_( 'ON' ) : JText::_( 'OFF' ) ;
- }
- function get_server_software()
- {
- if (isset($_SERVER['SERVER_SOFTWARE'])) {
- return $_SERVER['SERVER_SOFTWARE'];
- } else if (($sf = getenv('SERVER_SOFTWARE'))) {
- return $sf;
- } else {
- return JText::_( 'n/a' );
- }
- }
- function system_info( )
- {
- global $mainframe;
- //Load switcher behavior
- JHTML::_('behavior.switcher');
- $db =& JFactory::getDBO();
- $contents = '';
- ob_start();
- require_once(JPATH_COMPONENT.DS.'tmpl'.DS.'navigation.php');
- $contents = ob_get_contents();
- ob_clean();
- $document =& JFactory::getDocument();
- $document->setBuffer($contents, 'modules', 'submenu');
- ?>
- <form action="index.php" method="post" name="adminForm">
- <div id="config-document">
- <div id="page-site">
- <table class="noshow">
- <tr>
- <td>
- <?php require_once(JPATH_COMPONENT.DS.'tmpl'.DS.'sysinfo_system.php'); ?>
- </td>
- </tr>
- </table>
- </div>
- <div id="page-phpsettings">
- <table class="noshow">
- <tr>
- <td>
- <?php require_once(JPATH_COMPONENT.DS.'tmpl'.DS.'sysinfo_phpsettings.php'); ?>
- </td>
- </tr>
- </table>
- </div>
- <div id="page-config">
- <table class="noshow">
- <tr>
- <td>
- <?php require_once(JPATH_COMPONENT.DS.'tmpl'.DS.'sysinfo_config.php'); ?>
- </td>
- </tr>
- </table>
- </div>
- <div id="page-directory">
- <table class="noshow">
- <tr>
- <td>
- <?php require_once(JPATH_COMPONENT.DS.'tmpl'.DS.'sysinfo_directory.php'); ?>
- </td>
- </tr>
- </table>
- </div>
- <div id="page-phpinfo">
- <table class="noshow">
- <tr>
- <td>
- <?php require_once(JPATH_COMPONENT.DS.'tmpl'.DS.'sysinfo_phpinfo.php'); ?>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <div class="clr"></div>
- <?php
- }
- /**
- * Display Help Page
- *
- * For this method the important two scenarios are local or remote help files.
- * In the case of local help files the language tag will be added in order to
- * allow different languages of help.<br />
- * In case of the remote server it is assumed that this server provide one specific
- * help set of files in one particular language.
- */
- function help()
- {
- global $mainframe;
- jimport( 'joomla.filesystem.folder' );
- jimport( 'joomla.language.help' );
- // Get Help URL - an empty helpurl is interpreted as local help files!
- $helpurl = $mainframe->getCfg('helpurl');
- if ( $helpurl == 'http://help.mamboserver.com' ) {
- $helpurl = 'http://help.joomla.org';
- }
- $fullhelpurl = $helpurl . '/index2.php?option=com_content&task=findkey&pop=1&keyref=';
- $helpsearch = JRequest::getString('helpsearch');
- $page = JRequest::getCmd('page', 'joomla.whatsnew15.html');
- $toc = getHelpToc( $helpsearch );
- $lang =& JFactory::getLanguage();
- $langTag = $lang->getTag();
- if( !JFolder::exists( JPATH_BASE.DS.'help'.DS.$langTag ) ) {
- $langTag = 'en-GB'; // use english as fallback
- }
- if (!preg_match( '#\.html$#i', $page )) {
- $page .= '.xml';
- }
- ?>
- <form action="index.php?option=com_admin&task=help" method="post" name="adminForm">
- <table class="adminform" border="1">
- <tr>
- <td colspan="2">
- <table width="100%">
- <tr>
- <td>
- <strong><?php echo JText::_( 'Search' ); ?>:</strong>
- <input class="text_area" type="hidden" name="option" value="com_admin" />
- <input type="text" name="helpsearch" value="<?php echo $helpsearch;?>" class="inputbox" />
- <input type="submit" value="<?php echo JText::_( 'Go' ); ?>" class="button" />
- <input type="button" value="<?php echo JText::_( 'Clear Results' ); ?>" class="button" onclick="f=document.adminForm;f.helpsearch.value='';f.submit()" />
- </td>
- <td class="helpMenu">
- <?php
- if ($helpurl) {
- ?>
- <?php echo JHTML::_('link', JHelp::createUrl( 'joomla.glossary' ), JText::_( 'Glossary' ), array('target' => 'helpFrame')) ?>
- |
- <?php echo JHTML::_('link', JHelp::createUrl( 'joomla.credits' ), JText::_( 'Credits' ), array('target' => 'helpFrame')) ?>
- |
- <?php echo JHTML::_('link', JHelp::createUrl( 'joomla.support' ), JText::_( 'Support' ), array('target' => 'helpFrame')) ?>
- <?php
- } else {
- ?>
- <?php echo JHTML::_('link', 'http://docs.joomla.org/index.php?title=Glossary&printable=true', JText::_( 'Glossary' ), array('target' => 'helpFrame')) ?> |
- <?php echo JHTML::_('link', 'http://docs.joomla.org/index.php?title=Joomla.credits.15&printable=true', JText::_( 'Credits' ), array('target' => 'helpFrame')) ?> |
- <?php echo JHTML::_('link', 'http://docs.joomla.org/index.php?title=Joomla.support.15&printable=true', JText::_( 'Support' ), array('target' => 'helpFrame')) ?>
- <?php } ?>
- |
- <?php echo JHTML::_('link', 'http://www.gnu.org/licenses/gpl-2.0.html', JText::_( 'License' ), array('target' => 'helpFrame')) ?>
- |
- <?php echo JHTML::_('link', 'http://docs.joomla.org', 'docs.joomla.org', array('target' => 'helpFrame')) ?>
- |
- <?php echo JHTML::_('link', 'index.php?option=com_admin&task=changelog&tmpl=component', JText::_( 'Changelog' ), array('target' => 'helpFrame')) ?>
- |
- <?php echo JHTML::_('link', 'http://docs.joomla.org/index.php?title=Joomla_1.5_version_history&printable=true', JText::_( 'Latest Version Check' ), array('target' => 'helpFrame')) ?>
- </td>
- </tr>
- </table>
- </td>
- </tr>
- </table>
- <div id="treecellhelp">
- <fieldset title="<?php echo JText::_( 'Alphabetical Index' ); ?>">
- <legend>
- <?php echo JText::_( 'Alphabetical Index' ); ?>
- </legend>
- <div class="helpIndex">
- <ul class="subext">
- <?php
- foreach ($toc as $k=>$v) {
- if ($helpurl) {
- echo '<li>';
- echo JHTML::_('link', JHelp::createUrl( $k ), $v, array('target' => 'helpFrame'));
- echo '</li>';
- } else {
- echo '<li>';
- echo JHTML::_('link', JURI::base() .'help/'.$langTag.'/'.$k, $v, array('target' => 'helpFrame'));
- echo '</li>';
- }
- }
- ?>
- </ul>
- </div>
- </fieldset>
- </div>
- <div id="datacellhelp">
- <fieldset title="<?php echo JText::_( 'View' ); ?>">
- <legend>
- <?php echo JText::_( 'View' ); ?>
- </legend>
- <?php
- if ($helpurl && $page != 'joomla.whatsnew15.html') {
- ?>
- <iframe name="helpFrame" src="<?php echo $fullhelpurl .preg_replace( '#\.xml$|\.html$#', '', $page );?>" class="helpFrame" frameborder="0"></iframe>
- <?php
- } else {
- ?>
- <iframe name="helpFrame" src="<?php echo JURI::base() .'help/' .$langTag. '/' . $page;?>" class="helpFrame" frameborder="0"></iframe>
- <?php
- }
- ?>
- </fieldset>
- </div>
- <input type="hidden" name="task" value="help" />
- </form>
- <?php
- }
- /*
- * Displays contents of Changelog.php file
- */
- function changelog()
- {
- ?>
- <pre>
- <?php
- ob_start();
- readfile( JPATH_SITE.DS.'CHANGELOG.php' );
- $changelog = ob_get_contents();
- ob_clean();
- // Strip php tag
- $changelog = preg_replace('/\<\?php[^\?]*\?\>/','',$changelog);
- // Convert all other HTML entities
- echo htmlentities($changelog);
- ?>
- </pre>
- <?php
- }
- }
- function writableCell( $folder, $relative=1, $text='', $visible=1 )
- {
- $writeable = '<b><font color="green">'. JText::_( 'Writable' ) .'</font></b>';
- $unwriteable = '<b><font color="red">'. JText::_( 'Unwritable' ) .'</font></b>';
- echo '<tr>';
- echo '<td class="item">';
- echo $text;
- if ( $visible ) {
- echo $folder . '/';
- }
- echo '</td>';
- echo '<td >';
- if ( $relative ) {
- echo is_writable( "../$folder" ) ? $writeable : $unwriteable;
- } else {
- echo is_writable( "$folder" ) ? $writeable : $unwriteable;
- }
- echo '</td>';
- echo '</tr>';
- }
- /**
- * Compiles the help table of contents
- * @param string A specific keyword on which to filter the resulting list
- */
- function getHelpTOC( $helpsearch )
- {
- global $mainframe;
- $lang =& JFactory::getLanguage();
- jimport( 'joomla.filesystem.folder' );
- $helpurl = $mainframe->getCfg('helpurl');
- // Check for files in the actual language
- $langTag = $lang->getTag();
- if( !JFolder::exists( JPATH_BASE.DS.'help'.DS.$langTag ) ) {
- $langTag = 'en-GB'; // use english as fallback
- }
- $files = JFolder::files( JPATH_BASE.DS.'help'.DS.$langTag, '\.xml$|\.html$' );
- $toc = array();
- foreach ($files as $file) {
- $buffer = file_get_contents( JPATH_BASE.DS.'help'.DS.$langTag.DS.$file );
- if (preg_match( '#<title>(.*?)</title>#', $buffer, $m )) {
- $title = trim( $m[1] );
- if ($title) {
- if ($helpurl) {
- // strip the extension
- $file = preg_replace( '#\.xml$|\.html$#', '', $file );
- }
- if ($helpsearch) {
- if (JString::strpos( strip_tags( $buffer ), $helpsearch ) !== false) {
- $toc[$file] = $title;
- }
- } else {
- $toc[$file] = $title;
- }
- }
- }
- }
- asort( $toc );
- return $toc;
- }
- joomscan
- ..|''|| '|| '||' '|' | .|'''.| '||''|.
- .|' || '|. '|. .' ||| ||.. ' || ||
- || || || || | | || ''|||. ||...|'
- '|. || ||| ||| .''''|. . '|| ||
- ''|...|' | | .|. .||. |'....|' .||.
- =================================================================
- OWASP Joomla! Vulnerability Scanner v0.0.4
- (c) Aung Khant, aungkhant]at[yehg.net
- YGN Ethical Hacker Group, Myanmar, http://yehg.net/lab
- Update by: Web-Center, http://web-center.si (2011)
- =================================================================
- Vulnerability Entries: 611
- Last update: February 2, 2012
- Usage: ./joomscan.pl -u <string> -x proxy:port
- -u <string> = joomla Url
- ==Optional==
- -x <string:int> = proXy to tunnel
- -c <string> = Cookie (name=value;)
- -g "<string>" = desired useraGent string(within ")
- -nv = No Version fingerprinting check
- -nf = No Firewall detection check
- -nvf/-nfv = No version+firewall check
- -pe = Poke version only and Exit
- -ot = Output to Text file (target-joexploit.txt)
- -oh = Output to Html file (target-joexploit.htm)
- -vu = Verbose (output every Url scan)
- -sp = Show completed Percentage
- ~Press ENTER key to continue chmod 0777 /usr/bin/joomscan
- Example: ./joomscan.pl -u victim.com -x localhost:8080
- Check: ./joomscan.pl check
- - Check if the scanner update is available or not.
- Update: ./joomscan.pl update
- - Check and update the local database if newer version is available.
- Download: ./joomscan.pl download
- - Download the scanner latest version as a single zip file - joomscan-latest.zip.
- Defense: ./joomscan.pl defense
- - Give a defensive note.
- About: ./joomscan.pl story
- - A short story about joomscan.
- Read: ./joomscan.pl read DOCFILE
- DOCFILE - changelog,release_note,readme,credits,faq,owasp_project
- root@Voidvamp:~# chmod 0777 /usr/bin/joomscan
- root@Voidvamp:~# joomscan -u http://svn.openfoundry.org/
- ..|''|| '|| '||' '|' | .|'''.| '||''|.
- .|' || '|. '|. .' ||| ||.. ' || ||
- || || || || | | || ''|||. ||...|'
- '|. || ||| ||| .''''|. . '|| ||
- ''|...|' | | .|. .||. |'....|' .||.
- =================================================================
- OWASP Joomla! Vulnerability Scanner v0.0.4
- (c) Aung Khant, aungkhant]at[yehg.net
- YGN Ethical Hacker Group, Myanmar, http://yehg.net/lab
- Update by: Web-Center, http://web-center.si (2011)
- =================================================================
- Vulnerability Entries: 611
- Last update: February 2, 2012
- Use "update" option to update the database
- Use "check" option to check the scanner update
- Use "download" option to download the scanner latest version package
- Use svn co to update the scanner and the database
- svn co https://joomscan.svn.sourceforge.net/svnroot/joomscan joomscan
- Target: http://svn.openfoundry.org
- [x] Unable to process any more. I get - 401 Authorization Required
- ~[*] Time Taken: 5 sec
- ~[*] Send bugs, suggestions, contributions to [email protected]
- root@Voidvamp:~# joomscan -u http://svn.openfoundry.org/ossf/trunk/1.5.15/administrator/components/com_admin/admin.admin.html.php?mosConfig_absolute_path=shell
- ..|''|| '|| '||' '|' | .|'''.| '||''|.
- .|' || '|. '|. .' ||| ||.. ' || ||
- || || || || | | || ''|||. ||...|'
- '|. || ||| ||| .''''|. . '|| ||
- ''|...|' | | .|. .||. |'....|' .||.
- =================================================================
- OWASP Joomla! Vulnerability Scanner v0.0.4
- (c) Aung Khant, aungkhant]at[yehg.net
- YGN Ethical Hacker Group, Myanmar, http://yehg.net/lab
- Update by: Web-Center, http://web-center.si (2011)
- =================================================================
- Vulnerability Entries: 611
- Last update: February 2, 2012
- Use "update" option to update the database
- Use "check" option to check the scanner update
- Use "download" option to download the scanner latest version package
- Use svn co to update the scanner and the database
- svn co https://joomscan.svn.sourceforge.net/svnroot/joomscan joomscan
- Target: http://svn.openfoundry.org/ossf/trunk/1.5.15/administrator/components/com_admin/admin.admin.html.php
- Server: Apache/2.2.17 (FreeBSD) mod_ssl/2.2.17 OpenSSL/0.9.8k DAV/2 SVN/1.6.6 PHP/5.3.6 with Suhosin-Patch mod_python/3.3.1 Python/2.6.4
- ## NOTE: The Administrator URL was renamed. Bruteforce it. ##
- ## None of /administrator, /admin, /manage ##
- ## Checking if the target has deployed an Anti-Scanner measure
- [!] Scanning Passed ..... OK
- ## Detecting Joomla! based Firewall ...
- [!] .htaccess shipped with Joomla! is being deployed for SEO purpose
- [!] It contains some defensive mod_rewrite rules
- [!] Payloads that contain strings (mosConfig,base64_encode,<script>
- GLOBALS,_REQUEST) wil be responsed with 403.
- ## Fingerprinting in progress ...
- ~Unable to detect the version. Is it sure a Joomla?
- ## Fingerprinting done.
- ## 2 Components Found in front page ##
- com_content com_admin
- Vulnerabilities Discovered
- ==========================
- # 1
- Info -> Core: Multiple XSS/CSRF Vulnerability
- Versions Affected: 1.5.9 <=
- Check: /?1.5.9-x
- Exploit: A series of XSS and CSRF faults exist in the administrator application. Affected administrator components include com_admin, com_media, com_search. Both com_admin and com_search contain XSS vulnerabilities, and com_media contains 2 CSRF vulnerabilities.
- Vulnerable? N/A
- # 2
- Info -> Core: JSession SSL Session Disclosure Vulnerability
- Versions effected: Joomla! 1.5.8 <=
- Check: /?1.5.8-x
- Exploit: When running a site under SSL (the entire site is forced to be under ssl), Joomla! does not set the SSL flag on the cookie. This can allow someone monitoring the network to find the cookie related to the session.
- Vulnerable? N/A
- # 3
- Info -> Core: Frontend XSS Vulnerability
- Versions effected: 1.5.10 <=
- Check: /?1.5.10-x
- Exploit: Some values were output from the database without being properly escaped. Most strings in question were sourced from the administrator panel. Malicious normal admin can leverage it to gain access to super admin.
- Vulnerable? N/A
- # 4
- Info -> Core: Frontend XSS - HTTP_REFERER not properly filtered Vulnerability
- Versions effected: 1.5.11 <=
- Check: /?1.5.11-x-http_ref
- Exploit: An attacker can inject JavaScript or DHTML code that will be executed in the context of targeted user browser, allowing the attacker to steal cookies. HTTP_REFERER variable is not properly parsed.
- Vulnerable? N/A
- # 5
- Info -> Core: Frontend XSS - PHP_SELF not properly filtered Vulnerability
- Versions effected: 1.5.11 <=
- Check: /?1.5.11-x-php-s3lf
- Exploit: An attacker can inject JavaScript code in a URL that will be executed in the context of targeted user browser.
- Vulnerable? N/A
- # 6
- Info -> Core: Path Disclosure Vulnerability
- Versions effected: Joomla! 1.5.3 <=
- Check: /?1.5.3-path-disclose
- Exploit: Crafted URL can disclose absolute path
- Vulnerable? N/A
- # 7
- Info -> Core: User redirected Spamming Vulnerability
- Versions effected: Joomla! 1.5.3 <=
- Check: /?1.5.3-spam
- Exploit: User redirect spam
- Vulnerable? N/A
Add Comment
Please, Sign In to add comment