Coder Social home page Coder Social logo

cve-2023-0386's People

Contributors

chenaotian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cve-2023-0386's Issues

执行报错

mkdir: cannot create directory ‘/tmp//testfuse’: File exists
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
mkdir: cannot create directory ‘/tmp//updir’: File exists
mkdir: cannot create directory ‘/tmp//overlaydir’: File exists
mkdir: cannot create directory ‘/tmp//workdir’: File exists
touch: cannot touch '/tmp//overlaydir/hello': Value too large for defined data type
touch: cannot touch '/tmp//overlaydir/hello': Value too large for defined data type
sh: 1: /tmp//updir/hello: not found
sh: 1: /tmp//updir/hello: not found
我的内核是 Linux ubuntu 5.15.0-71-generic

按照分析步骤复现,最后的touch出现了报错

drwxrwxr-x 2 root root 4096 Oct 24 19:52 .
drwxr-x--- 12 root root 4096 Oct 24 19:45 ..
-rwxrwxr-x 1 root root 16760 Oct 24 19:45 hellofs
-rw-rw-r-- 1 root root 4192 Oct 24 19:45 hellofs.c
root@VM-0-8-ubuntu:/fenxiang#
root@VM-0-8-ubuntu:
/fenxiang# mkdir hello_mount_point overlay_mount_point upperdir workdir
root@VM-0-8-ubuntu:/fenxiang# ./hellofs hello_mount_point
root@VM-0-8-ubuntu:
/fenxiang# unshare -Urm
root@VM-0-8-ubuntu:/fenxiang# mount -t overlay overlay -o lowerdir=hello_mount_point,upperdir=upperdir,workdir=workdir overlay_mount_point
root@VM-0-8-ubuntu:
/fenxiang# touch overlay_mount_point/hello
touch: cannot touch 'overlay_mount_point/hello': Function not implemented
root@VM-0-8-ubuntu:~/fenxiang#

直接执行exp可以成功提权,不知道是啥原因?内核版本:Linux VM-0-8-ubuntu 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.