Another Power: 3.51 website management system vulnerabilities and solutions !!

Source: Internet
Author: User

Author: Science and Technology Creation freedom (real name: Kang Jian)
QQ: 330950407 MSN: htlaeh@hotmail.com

Today, another 3.51 website management system charge cracking vulnerability was discovered! Similar to the three vulnerabilities found previously, this vulnerability allows common registered members to read free and complete paid articles!

How to crack the vulnerability: register as a Website member, open a paid article, and prompt that you do not have the permission to read the full text. Click "print this article ", the "Print article" page will show you the full text of the paid article!
Solution:
Open the Article_Print.asp file in the home directory of the website. (back up the file before modification !)
Search:

<! -- # Include file = "Inc/conn. asp" -->
<%
Dim ArticleID, SQL, rs
ArticleID = Clng (trim (request ("ArticleID ")))
If ArticleId = "" then
Response. Redirect ("Default. asp ")
End if
SQL = "select * from article where ArticleID =" & ArticleID &""
Set rs = Server. CreateObject ("ADODB. Recordset ")
Rs. open SQL, conn, 1, 3
If rs. bof and rs. eof then
Response. Write ("<p> no article found </p> ")
Else
%>

Replace:

<! -- # Include file = "Inc/syscode_article.asp" -->
<%
Const ChannelID = 2
Const ShowRunTime = "Yes"
Dim tLayout, tUser
PageTitle = "body"
StrFileName = "Article_Show.asp"
If ArticleId <= 0 then
FoundErr = true
ErrMsg = ErrMsg & "<br> <li> specify the Article ID </li>"
End if
If FoundErr = True then
Call WriteErrMsg ()
Else
%>

Continue searching:
<% = Replace (rs ("Content"), chr (34), "") %>
Replace:
<% Call ShowArticleContent () %>

Okay., Success! In this case, the full text of this article cannot be printed unless the number is sufficient (or the validity period is not expired! Test now! This modification method is available on my own website () Test, no side effects! (If someone finds a new power vulnerability or an error in my modification method, I want to be able to tell me (you can add my QQ, and fill in "Power Vulnerability" for verification information ", although the problem cannot be solved, I will try my best! ^-^)

If needed, you can go to my website to test,Fly over happy home
If you do not want to register, you can use the test account: test password: testtest

Note: I did not find this solution first, but it took me half an hour to change the code for more than ten times and print several sheets of paper! (I am a dish in programming, so I have to pay this discount ~~~~ Don't laugh at me ~~ ^-^)


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.