start	end	text
4500	5920	My name is Sierra Hicks.
5920	10340	I'm one of the challenge project designers for the AIXCC.
10340	17560	I'm part of the Java team and we implemented a number of vulnerabilities into our challenge project of Jenkins.
17560	22140	We chose Jenkins as one of the most commonly used automation sources on the internet.
22320	26360	It's seen as the standard de facto way of doing open source DevOps.
26360	38940	This piece of software has thousands of plugins and has grown organically for years from the community, securing and enabling more trust in the community-based plugins is something that would really help the internet out.
38940	44380	This is one of those fundamental building blocks of how software is even developed and pushed out.
44380	46440	We've chosen two plugins.
46440	55140	The git extension plugin which is used in 95% of all installs and then the email extension plugin which is used around 85%.
55140	57140	Both of these come enabled by default.
57140	58960	Some people have chosen to turn them off.
58960	72440	They're some of the most popular plugins in use on GitHub and so their complexity that they kind of encapsulate really will test CRSs in their ability to find vulnerabilities in thousands of other plugins within that ecosystem.
72440	78700	In these challenges, the CRSs are going to be faced with having to manipulate a state machine.
78700	88400	This is a common programming paradigm for a lot of event-driven systems and so we see this pattern throughout plugins in Jenkins ecosystem.
88400	102540	Emulating this really puts CRSs to the test in terms of they need to have an extreme attention to detail but then also manipulate the state machine to actually reach the vulnerability is also quite complicated.
102540	107000	I expect that several CRSs are going to find the bugs but not know how to get to them.
107000	123480	Jenkins is a massive, massive challenge project to encapsulate and so the team spent a lot of time wrapping and building Jenkins in a way that will enable CRSs to easily parse the build structure as well as plugins because it is definitely challenging.
123480	131700	It really will test how much memory they have and how many rules of the system that they can analyze, develop, or enumerate.
131700	137520	So this is the state machine that we have integrated into Jenkins and injected vulnerabilities in.
137520	150280	So starting with the email plugin, the first vulnerability that is present in the system is that an assumption made by the programmer is that we will always progress forward in time and we will never try and jump back in time.
150280	162360	This check right here says look we need to make sure that we will never go over the maximum states that we have in the system and crash but there's no check to see like are we going backwards.
162360	176440	The expected flow from the programmer was okay they're going to send me state zero, I'm going to do my construction, case one I'm going to set some values, I'm going to configure things, I'm going to mark it as okay for publishing, I'm going to do some tidying up,
176440	184460	and then finally I am going to close this whole system down and that's kind of the flow that the programmer designed this around.
184520	192140	But there's always a flaw in complex systems like this and it's due to assumptions that a programmer makes.
192140	199480	So now that we can move backwards there is an implicit assumption inside of some of these functions that these values will be safe.
199480	213340	And here we set an email address in the system that is used as a reflective call inside of the constructor and the programmer figured this was safe because you know if if no one moves backward in time they're not going to do anything bad with this.
213360	231180	But now that we can do that a CRS should be able to find okay I move forward of this the state a certain amount and then I go back in time a little bit and I change this value here and then I set my state to zero again all of a sudden I'm able to call arbitrary code and this is called reflective code injection.
231200	242980	The idea of progressing forward in time, jumping backwards, going forward again, and then jumping backwards it might seem like time travel but it's a common programming paradigm that people use.
242980	250480	But you can visualize this system as a maze and the CRS has to figure out which state to go through and how to get through the maze.
250480	260540	And each level of difficulty drastically increases the amount of pathing that a CRS will need to take in order to find and exploit this vulnerability.
260720	262500	Patching bugs is very difficult.
262500	284940	Not only do you have to maintain the functionality of the program like if I if I went through and I just deleted this entire chunk of code the vulnerability is gone yeah great but also the functionality is is gone and we can't access that anymore and kind of the point of this project is to find and discover bugs in systems but also patch them.
284940	291140	Patch them in a way that correctly fixes and addresses the vulnerability without affecting the functionality of the plugins.
291140	294580	We want to do this automatically across thousands and thousands of plugins.
