Thank you very much. So this actually talk was about a bug we found. Like I do bug bounty a lot when I don't do my regular job. And I had lots of conflicts and thoughts about what should i do When i report stuff, especially in third-party vendors. Because third-party vendors, you have much more totally now. And it's a big problem of the world. Everybody is using so much third parties. And i will just start my talk. But about me, so i'm building an App sec marketplace currently at a company called cider security. This we connect to all the supply chains. And this is why i'm doing so much bug bounty and i'm trying To understand all of the different vectors of the whole Supply chain. But i do also bug bounty. So i was in the h1702 last week here in vegas. And i was in the bug bash event. So i'm already two weeks in Vegas. I don't know nothing. It's hard for me. I do some security research. So i create some cpe bugs. I'm already doing some Developer. I'm a problem maker and a Solver. So usually what i do in the Company, i just like make problems for everybody. And then help them solve them back. And i do paladin work. So i just like create an aura for Every cyber security stuff over here. One day while i was hunting, in the ambassador world cup, that Was a few months ago. There was ambassador world cup. Lots of companies. Lots of countries. I participated in this event. And we were supposed to hack Together as a country. To all the getting points. It was a pretty cool event. And i met some good people over There. We hacked some stuff. And we just like went over. But then i don't know, some of You from the bug bounty world know. And we together, we found a bug. We created a cv for it. And i will talk a bit about this bug. But before that, there was a previous bug. Oh, you can't see it here. Oh, fuck. You can't see it over here also. So the tldr of this is we found a Bug in a place called a plug-in called elementor. The elementor plug-in was installed in about at that time, I think it was like 8 million or more, 9 to 10 million. Depends who counts. What was the bug? It was around the world. And this plug is like a site Building website. So you can create your own site Like wix or other kinds of solutions. And you have different capabilities. So over there in that bug specifically, you had a light Box settings that you can send a base 64 code. And this base 64 will go eventually in the javascript And execute some stuff. And someone found out that you Can just like add it to html. And you can do that. And this sets unsecure html into the code. And this creates like a dom-based scripting. Attack on this bug. So we scanned a lot of websites. And one of our targets had this affected bug. But we couldn't find it. It was patched and wasn't Affected. So we just like went full into It and started reading the code. And started to see like can we Bypass this protection. So when you see over here in the Preview, you can see that this is a bug. And the previous one, the html content had this e.Html. E is the payload that we were sending. And the html just like got into the set html content. And they fixed it. Afterwards they fixed it and They just deleted the html so you can't set it anymore. But then we saw there's different like types. So you have video, you have image, you have slideshow. And we went over all of these types and wanted to look at the Different areas. So for the set html content, we Did a set video. For instance, this was the Function. And anybody can see what's the Problem here? Like five seconds? No. We researched it a bit. And this is like the code itself. And if you can see over in the n, T is jquery. You see the t is jquery. It's the getting stuff. And then if the e video type is Hosted, then it goes into a different case. And it creates like a video parameter with n. Now, if you look at the html content, you can see that it's The extension of the data of the source url autoplay and the Video params. So whatever we put into video Params will be converted into an attribute into the video html Content. So this is actually the bug. And then if you, if we continue, and we just created this error, We have on error. So the video cannot load. And then on error runs our payload inside. And this is, again, base 64 encoding and adding it into the Lightbox settings. And then when we run it, we are Able to execute code in a dom-based scenario. Dom-based means that the server doesn't see anything. Like if you attack someone, it's silent. No logs. No nothing. Nobody knows about it. It's the most fun bugs. And the most hard bugs for forensics and instant response To understand what happened. . So a bit of a poc. And a demo. And actually, the bug bounty, They asked us to do a full impact poc. So we created a payload that this is like a normal admin User that has access to test page. And we created like a page free. And when you see over here, it Just like created a new user. So you create like a hack of one User. And this is actually what we did In the payload. We asked for the nuns to get Like access to the csrf token. And with the csrf token, we Submit again a formal request to wordpress to create a new user. And then when someone clicks this link, he just like a new Admin user pops up inside the system. And we can access it. So i think this was the poc. And we showed it. No. A bit about like dom based and like why i love them. They are scary. I told you a bit about like how Effective they are. And they are not much people Look for them because it's looking at javascript and Looking at minified code. And it's very hard to understand. You need to know code and to go and look at all the different Flows inside them. But once you get them, you Actually, the client is sending a request to the server. And then it attacks himself. So there is no, the server Doesn't know that like if i would want to tell some client Of us to protect himself of it, he doesn't have any way to Protect himself. Like there's no waf that you can Put in. And this is pretty interesting to See. Just like we scanned the whole Internet and we saw like eight million websites. So from different versions, as you can see here, lots of Versions are Old versions. So you have like this whole Range of vulnerable. So we submitted it to a few Bugs actually. And they told us, no, it's a Duplicate because we didn't fix the bug from last year. So it was like funny. I don't know why. But we have so much stuff over there. If you can go scanning and you find a new target, then just Add me as like a 1% collaboration or something. So my biggest question was now we found this problem, what can We do about it? like what's the best way to Approach it? like if you've seen the don't Look up, like can i come saying to the world like no, this is a Problem. You have to do it now. You have to fix everything. And what is the best scenario of Fixing stuff? so now this is not a log4j. It's not a shell shock. Maybe one day i will find a log4j And it will be fun for me. But for now, i'm imagining like What will happen if this was a cbss 10? And heart bleed, log4j, shell shock, whatever problem you Found, you've heard about in the past that gave a cbss 10 or Even a 9. And now the question is like what Should i do? should i go to the money side? I want to get as much money from this possibly without going Into the illegal area. So i'm going to go to the money side. Like going only legal. Do i want to create a cv and let Everybody know about it? do i want recognition of how what I did a good job, here, this is my recognition. Everybody know about me. I'm cool. I know i played with it for five hours and found it. So i don't know how good is it. But then i talked with some Random dude over the last week and he told me this is a new Slide. I just put it on. Release it and paste it and see what it does. I think, like, this is a good thing. I don't know if it's a good idea or not. But it happens. So like log4j was something like That. Like there was the alibaba was in a Fight with the government and then they just, like, released It and everybody, who panicked from log4j over here? Like who did nights? so, yeah, we have a lot of people Over here that did nights and days and, like, i don't think It's the best way to release something like this. But i don't know what is the best way. So this is a bit of my thought process. But what i'm thinking is the best is to notify the affected Vendor first, wait for a response and fix. And then it can take a few weeks or months. And then start, like, submit a cve, disclose privately to Affected users, and at the end release the cve and let Everybody know. And let them handle that they don't know about it. It's a good way. This is a responsible disclosure way. I have some problems with it because i wasn't attacking the Vendor itself. I was attacking a target. So now the question is, like, should i tell the target or The vendor first? like, who should i tell first about This? because i am, when i'm attacking a Target, i'm, he is my customer. Like, i'm pretty much nda'd With him. I'm hacking on his target. And if i find something, i am obliged to tell him first. So i have this vendor. And the target. So i don't know what to tell. So maybe i will first tell the Target and the vendor at the same time. So i'm looking at that. But then i have other targets. So i have a whole list of many domains. And i found this, like, elemental xss. And i have now a list of 200 targets. I just search in my database. No, i don't have a database. I need to do one. But i can search in my database Of all the targets and see, oh, these targets have elemental. Let's see if they can, if they are vulnerable to this bug. And then start disclosing to them. Because i'm in all of these types of public and private Programs, i feel like i need to tell them also first because They hired me to tell them about this as a bug hunter. So now i'm telling, like, a lot of customers. And their teams, and their teams are also doing security Research by day and bug bounty by night. And they can start taking my stuff. And now it's not a secret anymore. So it's, like, do i have a mutual nda with them? Like, they are not allowed to use my tactics? I don't know. Like, this is stuff that are Really advanced inside bug bounty, but we didn't solve Them properly yet. So i expect the company sometimes to pay for me for Third-party disclosures. Now, when i ask a lot of people, and i don't know, i can ask Over here because you're a fun crowd. Who thinks you should pay for third-party disclosures? If i tell you something, you have a problem, but in a third Party. Who thinks i should pay for it? By hand. So i have, like, yeah, a little. Like, yeah, brian doesn't agree. It depends on the... Yeah, so sometimes the integrator, if it's, like, Kindly knitted inside and it's... If it's knitted inside, then they should pay. But then i... So we started submitting to these targets, and targets did Start to pay. And this is... We asked them, i asked them afterwards, why? Why are you paying for it? And they're saying this is good threat intelligence for me. Because i'm paying for threat intelligence. I know there's a cv, there's a zero day, but i don't want to Start panicking like all the world will be when the cv will Hit the fan and everything will go wild. So i want to sleep safe at night, and i'm willing to pay For third-party disclosures. I don't know if it will be full amount or how much, but they Are willing to pay for it, and they're willing to handle it Properly. Maybe they can add waf Mitigations. Maybe they can add fixing it, Pressure the vendor itself and telling them privately because They have a sla with them. So we are in a bit of a disagreement or agreement. Not all companies are the same, and it's very hard to know which Companies do want to pay and which companies won't. But you can submit and test it and see and start learning on Yourself. But then i think they should pay, just like... I believe that there is value in telling someone, even that he Can't fix it directly, but the ecosystem can be fixed. Other questions i found is, like, i talked about it before, But is it a secret? when i'm telling someone and he Now, he tells the vendor or he tells his third-party gray i.T. Supplier that i don't trust, it goes, leaks out. So this secret is harming me if i'm telling people, and this is Why the best thing is to do it all at once. Like, wake it up, find all the targets and just submit it to Everybody and make the cv as fast as possible. Sometimes it takes months and then we have a problem. Like, this cv came after four months. I was quiet about it because the vendor just took his time to Notify everybody and understand. It's his first time he created a cv by himself. Last cv was just, like, without their knowledge. So... When... When this can leak, then attackers can start using it. Bug hunters will start searching it. So they are taking, actually, if i did the research, now, this Research was small, but if i did a very big research and i put Lots of hours on it and then i... It gets leaked and lots of people start using it and getting Their own nuclei templates and just, like, scanning and finding It, it's stealing from me money from one sense of... Not really stealing, but it's... Taking my profits as a bug hunter. But then security teams will just, like, start running around And so when it does hit the fan and everybody will, like, no, log4j Is coming, what can we do? Can we start, like, mapping every single thing in our company? It's a mess. And we don't want stuff to leak. So i started, like, thinking about different approaches. So maybe notify the affected vendor, notify the targets Themselves at the same time. Like bounty hunting. Wait for a fix. This can take some time. Work with the vendor and then submit and release the cv with them. This can be... It's less disclosure like the previous one, but it's still a good way. I think it's beneficial for the researcher. Companies need to start paying for threat intelligence. This is... And they are doing it, so this is good. But small companies can't do it. And this is a big question. Like, how can we support also small companies? Not the big ones. The big ones can pay for you and it's okay. But the small ones, they don't have the budget to do that. So a company without a bug bounty program doesn't know about anything of this stuff. They are in the dark. They will hear about it from the news. Like, when everybody will be hacked or some kind of slashed out or whatever you are looking at. Whatever news feed. I also cannot scan for everything alone. I can scan. I have my own list. But I'm not invited to all the programs. Maybe someone can invite me to all bug bounty programs and then it can be nice. But I'm not invited to everything. So I don't know who can I scan, who I can't. And this is... Like, companies do have different policies of accepting third party submissions. So I can just go for the money. This is easy. This is usually... I see some people doing this at the end because they don't... They're not enough in the industry. And they see it as a... They actually do bug bounty for full time. And then this is actually impacts their income. So if you want to do it full time and the money is very important for you. Because you're doing it full time. Then you need to notify different targets. Continue searching targets. And maybe, maybe... These companies will contact the vendor eventually and the CV will come out. But maybe not. And I think like this is... It's a bad idea. I don't think I would do that. But I know lots of people are doing it in the community. There's like different lines of what you can do. And I'm not judging anybody. It's just like this is... I'm pointing out the different tactics bug bounty can happen. There is no one correct path. It's the yellow brick road. But that's it. My path. But... I started seeing different like ventures into internet bug bounty. That the internet bug bounty is actually a foundation that pays for bugs that you can find on the internet. Now, they don't pay if I find it in... If I get paid from a different vendor. So like for this specific bug. I think they would pay... I don't know. Something like... Let's say the average $3,000, $4,000 on this bug. But if I go in the previous way just submitting to everybody. I will get much more. So it's not... If I'm looking into the game and like what's the most effective for me. To go to the internet bug bounty. It's not that effective. It's the last resort usually. I think this should change. And maybe they will have more budgets. And more companies working together. And giving better payouts for some... For this kind of research. You also have the safe harbor. And you have this close IO. That are trying to play with these areas. And trying to look at different solutions. If I would look at the solutions. But first like my adventure. So I can go to only the vendor. Contact the vendor only. Telling him. It's his problem. Do whatever you want. I can content my target in the vendor. I can contact multiple targets. I can dump it and paste it in. Just like see what happens. I think it's the most funny thing. I won't do it. But I don't know. This is maybe one day when I will be like 90 years old. Just like dump it and paste it in. And see what happens. This will be my CVS system. But for like the future. And what I want like to look into. And this is a big discussion. That I would want to be part of. And understand is like. Maybe there's like a bug bounty rev share program. If I can create a CV. And know that this CV is like a part of my research. And everybody that uses my CV. Will give me like 1% of the bounty. This can be cool for me. I can live with that. This is like a longer living like revenue. If it will be good. Then it will be good for us. Also, I enter the bug bounty for third parties. What happens when I find a third party? Can I go to the internet bug bounty? And tell them. And maybe we need like a kind of budget for this area. I was talking also about mutual disclosure agreements. This is important. Because I, when I submit a bug. I'm NDA to them. They're not NDA to me. I don't know how much they are NDA to me. When I'm telling them about this bug. And this is a part of when you go full bug bounty. It's a problem. And you need to understand like the consequences of. We had in hacker one. I think a problem that one of the employees started using tactics. And we have other areas that you can see. When people start submitting new tactics. Then you see everybody following them. And it's good. It's good for our industry. It's good for everybody to share as much as knowledge. But we need to have a way how to create it in efficient way. In a standardized way. So we won't harm ourselves in this process. So I don't have all the answers. And I have lots of questions. And this is the moment you can ask me anything you want. Whatever you want. Like I don't know. If you have any questions. Brian. You have a question. No. There's a microphone so everybody can hear. You go find the bug and you send it out to all of the Integrator or the supply chain. You send it out to all the affected websites. Each one is paying, you know, across the board. But ultimately the fix of the code is that supply. The elementor. Yeah. If they just paid. What maybe it's worth. Is it then the same problem to go to everyone else to get maybe the Smaller amounts of money from who it's affecting. But if the elementor is paying out a large sum, you don't have to Go through all that work and then you just move on to the next Thing maybe. I don't know. What are your thoughts? I think it's a good solution. But because we have lots of startups and lots of companies That don't have these budgets and bug bounty, like elementor Doesn't have the budget of a big fortune 500 company. So we got paid more. Like specifically in bounties or in one bounty. We got paid more bounty in other targets than the elementor one. I'm not saying something bad about the elementor bug bounty. It's great that you have it. But it's you can't expect everybody to pay for the same because they Have different budgets and different use cases. So, yeah. Yes. Okay. So I have a question. You mentioned that you scan Can I speak closer? Yeah. Okay. So you mentioned that you almost scan like the whole internet to see Like how many websites like were affected by the bug. So which tool exactly did you use? So we went with two tactics. First of all, gall has like lists, a nugget of websites. He's doing bug bounty and recon a lot. So he has a list of lots of domains that have bug bounty programs. And we scanned them. But also I went to built with and bought a list for $100. And like it paid off. Just like you can get a list of everything. So this is just like a big list of websites. You can get built with like say you can select a technology and just Buy the whole list of all the domains that they have. And then the game is to start trying to test which has a bug bounty program And which doesn't. This is the hard part. There's no standardized way to do it. There's like also private programs and matching. And you don't know usually which company is behind a domain. But this is the worst. This took us the most time. The research was like actually took us a few hours. But then finding out who is vulnerable and can we submit to them. Do they have a VDP? Do they have a VRP? Do they have a bug bounty program? What kind? Where? Then like talking about dupes and communicating with the teams. This is the most time that we took our effort on. Any more questions? That's it. So thank you very much. And thanks for watching. And I'll see you in the next video. Bye bye.