Isn't it harsh? LFI + code injection

Source: Internet
Author: User

A simple statement to avoid misunderstanding of the meaning of this article

Fckeditor does not have any hard-hitting vulnerability in this article.

It's just that the description of LFI can be used together with files like fckeditor that are not too harsh to detect soft injuries.

Of course, some children's shoes may say that LFI is far more than that.

Of course, this is dropping ~

I am only here to describe what I have recently studied and uploaded. What other technologies can be used together ~

So you don't have to have too much expectation for the technical value of this Article :)

In addition, xss is more rigorous in many cases than I have described ~

Bytes ----------------------------------------------------------------------------------------------

Test fckeditor with my framework at night

Think of something

In fact, as long as there is no secondary rendering protection for the uploaded files (and most upload verification is not at this level)

The file itself can be injected with code (at least basically allow uploading images and images can be injected with code)


Find the file path (no matter what the suffix name is)

You only need to work with one LFI Vulnerability (at least better than RFI)

You can use shell directly.

Compared with xss + cookie/session or other combinations of technologies

What's more, if LFI does not include other files, there may be permission restrictions?

However, combined upload is a powerful tool.

Isn't it harsh?

At least I feel like a breakthrough.

The following code is tested in the latest fckeditor 2.6.6.

Then use an LFI to get the shell.

 

 

 

Then we can continue to extend

The essence of LFI is code injection.

Where there is a Trojan

Whether it is any type of file, it can be taken without mistake.

Including html

 


Since html is also good, You Can YY some situations.

For the sake of security

With few features and no database

The Code of each station renders the data content into an html

Find interaction points like message boards or comment points

For example, guestbook.html or comment.html

You can leave a message or comment

A message or comment is a trojan.

LFI can include guestbook.html or comment.html.

You do not need to upload any more :)

Thinking is a little too broad.

From uploading to code injection and then LFI

Everyone should be YY ~

 

By le monde de CasperKid [S.Y. C]

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.