start	end	text
9460	20740	Today's main topic is that it should be a relatively rare type of attack, that is to say, I let you go to my account, but it can produce some attacks on you in some scenarios.
25060	34980	After that, a brief self-introduction, my website name is DaiziBuKaikou, and then ChengShuWenZhong, these are some of my embarrassing characters, I won't write them down.
35020	46580	And then I've been familiar with web security for a few years, and I've worked in a lot of internet companies, and I've worked in some new prisons.
46580	56540	And now I'm working in the system network security department at MaYe. To sum up, because I'm more familiar with web security, so I'm now working in network security.
56780	61920	The reason I came up with this topic is because I used to find a lot of leaks on other people's accounts.
62360	74420	I mentioned this on WuYun a few years ago, I mentioned some leaks, basically, including all kinds of internet companies, that is, you click and I'll go to my account or hijack your account.
74420	80380	And then I always feel that if you find these loopholes on other people's accounts, you have to pay them back.
82240	87320	Although one day I found out, I said, why don't I let other people go to my account, right?
87320	95100	And then I changed my mind, and in my life, I often give some of my training members to others.
95160	103660	Including one of my European friends, he likes to go to a website called TangBuRe, I don't know if you know about it.
105820	111100	It's a website that shares pictures and videos of some netizens.
111520	117640	There are a lot of good things on it, and then my friend can't get on it.
117640	120160	He said, you help me get it, and then I helped him get it done.
120160	123120	And then he didn't understand English, and I helped him register an account.
123880	132740	And then, after a while, I suddenly opened this account again one day, and I suddenly found a lot of wonderful accounts on it.
132740	136680	And for me, I got a lot of happy nights.
136760	140900	I didn't do anything, I put my account on someone else's account, and I got some benefits.
141120	147220	This thing, even some of you think, maybe sometimes, for example, you help some of your elders or friends,
147220	152060	For example, when Apple ID, Apple phone, he won't use it, you help him with your account.
152060	155660	Maybe one day you will find that many of his photos are synchronized with yours.
155740	159420	So you think from the side, this is a kind of...
159420	165180	For me, as the user of this account, I may have gotten some benefits.
165180	167360	This may also produce some attack scenes.
167360	172340	Today, I may mainly talk about some accounts in various scenarios.
172440	176620	The victim logged into my attacker's account and produced some attacks.
179080	182660	And then, so you think about it, its essence is like this.
182660	185580	What I just said is that the other party knows about my account.
185600	189080	If the other party is unaware, he may say that some of his photos
189080	191200	or some of the things he sees are known by me.
191200	196480	So if the victim logs into the attacker's account unknowingly,
196480	200400	the attacker controls the account and controls the input of the content of this account.
200680	205460	Including the victim's environment, the input of this account,
205460	209440	this interaction may cause some attacks on the victim.
210380	218120	For example, stealing login certificates, fishing, stealing privacy,
219600	223780	polluting, even framing, including the identity of some A code,
224660	227820	there will be examples later. Today, I mainly talk about this.
231380	235260	Of course, everyone will say that the other party will not be so stupid to log into your account.
235260	241960	So we must be using some attacks to log into our account.
242900	245880	The simplest thing is to log into the C-SERV loophole.
245880	252680	In fact, most of our login requests basically do not do C-SERV protection.
252680	256400	Because in China, it is basically done under the user login state.
256400	259460	It will plant a C-SERV token according to its drawing,
259460	262820	or give a random number directly in the cookie.
262980	265240	So generally this is not done.
266900	268220	Then this is not done.
268220	273020	If you know about C-SERV loopholes, you know that you can use a simple POS request
273020	276220	to complete the login request.
277000	284180	Even if you use a text message code, you can even let it log in.
284180	286180	You can apply for a text message code here.
286360	288940	If the protection of this aspect is not good,
288940	293740	you can put the text message code in and let it complete the login request.
295080	298540	And if the login list is not a problem,
298540	300880	there is also a very common one.
301380	303980	In fact, when most people complete the login,
303980	305480	it is actually in the cookie.
305480	308740	For example, Session or SID, etc.
308740	310900	This kind of authentication cookie.
310960	313540	Then if we find a website with such a...
314580	317960	Some websites will have such a SetCookie interface.
317960	320920	Maybe it can only control the key or control the value.
320920	322860	Or some can even control it all.
323540	325100	If you find such an interface,
325100	330020	you can give it a SetCookie directly.
330020	331900	Let it log in to your account.
332540	334580	There are even some scenarios.
334580	339360	There is a loophole called CRLF.
340620	346200	You can also let it complete the SetCookie behavior in the response.
347940	351400	Then there is the third one.
351400	354360	There is also a link login certificate.
354360	354920	How do you say this?
354920	360560	That is to say, some seeds may be from the single-point login,
360560	363200	from the SSO or Passport page.
363880	365540	After the single-point login is completed,
366100	368160	the SSO will pass a token to it.
368160	370260	Then complete the login of this domain.
370260	372360	Then we can use such a link directly.
372360	374420	Send the token we obtained directly to it.
374420	375960	Let it complete such a login.
378670	381110	Then there are also those QR code scans that are often seen now.
381110	384110	You can also simulate locally and scan this QR code.
384110	387590	The logic of its QR code login is my local QR code.
387590	389750	Then go to the service end and ask.
389750	392630	Ask if this QR code has been authorized by the phone end scan.
392630	394090	Keep asking. Asked to be authorized.
394090	399450	Then the service end will return it a link with this certificate.
399850	401510	Then it completes the login in this page.
402110	405370	Then we can simulate locally and get this link directly.
405370	407510	Send it to the other party to log in.
407930	408830	Like these requests,
408830	413470	it didn't do a similar source request verification.
413470	415370	As long as you send it directly, you can basically complete it.
415370	418990	I see that some examples can basically complete the login directly.
419550	420370	Then there is another one.
420510	424830	If the account of this website has no problems with logging in.
424950	427730	But there may be a third party call to log in.
427850	429430	For example, I can't log in to your account.
429430	433070	For example, let's take a dog station.
433070	434170	I can't log in to the dog station.
434170	436210	But the dog station may be bound.
437350	438850	For example, there is a Weibo login.
438850	441310	I can let it log in to my Weibo account first.
441310	444490	Then use its third-party login interaction request.
444630	448330	It can also realize its third-party login.
448330	450610	Then realize the login to its dog station.
452750	454350	Of course, the last and most common way.
454350	455530	When you can't do everything.
455530	456930	There is also a social engineering.
456930	459690	For example, you can go to his house and chat with him.
460430	462470	Pretend to invite him to dinner.
462470	465670	Then go to his house and get his browser directly.
465670	467010	Of course, there are some more scenes.
467010	472950	Including browsers, routers, and some smart home devices.
472950	474650	You can log in directly through this method.
475270	479030	When ordinary people use it, they may not pay attention to these devices.
479030	480670	There is also a detail called binding account.
487620	489080	If the other party logs in to our account.
489080	491920	So let's see what kind of scene it is.
491920	493480	Let me list it roughly first.
493480	496620	That is to say, from the degree of the victim to the attacker.
497760	501120	In fact, when the attacker controls the account.
501120	505900	What he can control is that I can read and write things from this account.
505900	508240	Even what I used to write.
508240	509600	This thing is on your page.
509600	512880	For example, there is a called cfxs.
512880	514900	That is to say, the content I wrote.
514900	517060	There is even a greater code execution right.
517300	520020	I will introduce cfxs alone later.
520020	524500	This loophole is basically what everyone thinks is a cumulative loophole.
524500	526800	And then on the victim's side.
527000	529620	Some of his behavior interacts with my account.
529840	532680	There will be various functional scenarios.
532680	534020	Will be listed at the end.
537820	543300	Then the first one is that we log in to the general attacker's website account.
544620	546820	For example, his online behavior.
547300	548460	What is online behavior?
548460	551160	That is to say, my user unknowingly logs in to your attacker's account.
551160	552700	For example, a search engine.
552700	555780	For example, Google has had a loophole before.
555780	559580	That is to say, I let you unknowingly log in to my Google account.
559580	561420	Then you may not know.
561420	563280	Most people may not log in to this account.
563280	565960	But after he logs in to the attacker's account.
565960	568080	He still uses it every day to search.
568080	571940	His search records may be recorded.
572180	575820	Then the attacker's login account will see this person's search record.
575820	577280	Of course, this is not very serious.
577280	579680	But it is also a certain degree of privacy disclosure.
579680	581460	Including some of the video websites of many websites now.
581460	582780	Some browsing records.
582780	584040	These are all OK.
584040	585420	Then think about it the other way around.
585420	587000	If the attacker writes content to you.
587000	587940	For example, I open this account.
587940	590280	I generate some malicious searches.
590960	592960	Then I can even say.
593180	594660	When you are using this account.
594820	596320	When you are in the input box.
596460	599200	That autocomplete is automatically completed.
599200	602500	It will recommend some of the content I used to attack the attacker to search.
602600	605820	It can achieve a phenomenon of recommending content.
606600	607820	An effect.
607820	609080	Then there is.
609080	610220	You can.
613180	615300	Some behaviors can cause fishing.
615300	616440	For example, I.
618480	621060	You can open a website through email guidance.
621720	623600	For example, I control this account now.
624660	627060	For example, similar to an e-commerce website.
627060	631720	It has an area where my users can write their own notes.
631720	633240	But you can put the attacker.
633240	634740	You can write a note or something on it.
634740	636940	Especially like an official statement.
636940	639480	Then you may send an email to guide the user to open it.
639480	640800	In fact, at this time, the user opens it.
640800	643500	It also sees the official legal domain.
643500	644940	Then look at the content.
644960	646240	In fact, because it is not its own input.
646240	647200	It has no feeling.
647200	648600	But in fact, it is my attacker's input.
648600	650860	It may think this is an official notice.
650860	652300	Then it will be guided by it.
652300	653480	Continue to do something.
653480	654700	Of course, I will give you an example.
654700	655980	That is to say, this content.
656000	657280	When you can control the attacker.
657280	659340	You can guide the user's behavior.
659520	660560	Including this interaction.
660560	662440	You can produce some fishing and fraud.
662440	669340	Then there is another one.
670360	672100	After the user logs into my account.
672100	673180	It is used without knowing.
674240	676560	It may have some input scenarios.
677400	678220	For example.
679380	680600	I remember before.
680720	682840	PayPal seems to have such a case.
682840	684000	That is to say.
684280	687180	The user logged into the attacker's PayPal account.
687900	688780	Then.
688800	690100	When he is paying online.
690100	691320	Maybe we need to stop the chest card.
691320	692160	Card number.
692160	694300	He doesn't know that the current login card number is the attacker.
694300	695400	He made an appointment with himself.
695400	697400	He entered this chest card card number.
697400	699740	Maybe this card number is already in the attacker.
699740	701640	In the attacker's own section.
701640	702860	You may see this card.
702860	703680	Or this account.
703880	705960	Has the right to pay for this chest card card number.
707460	708360	You include.
708360	709980	I can also be some fishing.
709980	710860	Send an email to the user.
710860	711540	Say.
711760	712780	You won the prize.
712780	713080	Right.
713080	714780	You hurry to fill in a receipt address.
714900	715420	But in fact.
715420	716920	When the user opens my link.
716920	719040	Has already logged into the attacker's account.
719040	719400	Then.
719400	721680	He also entered a receipt address.
721700	723060	I thought I won the prize.
723060	723880	In fact.
723880	724620	This receipt address.
724620	726640	The attacker can also see this receipt address.
728160	729320	There are some of the same kind.
729320	729760	For example.
729760	730180	Privacy.
730180	731140	What kind of.
731680	732320	Uh.
732320	733280	Input schedule.
733280	734540	If you can deceive him.
734540	735200	To enter this.
735200	736060	It is also possible.
736160	738400	Get some sensitive information from the other party.
738980	740280	What I just said.
740380	741400	Our attacker.
741400	742260	Controlled account.
742260	743080	Or content.
743080	743800	With.
744820	746100	Some interactions with the victim himself.
746860	747660	And then.
747940	748420	Uh.
748420	749040	These contents.
749040	749920	In addition to interacting with him.
750480	751060	Uh.
751060	751960	He may also.
751960	753300	Interact with some third-party websites.
754860	755580	Uh.
757460	758280	The first.
758280	758640	Also.
759300	760460	Third-party website.
760460	760560	Submit.
760740	761200	Attacker.
761200	761740	Read.
761900	762200	Uh.
762200	762800	Third-party website.
762800	763180	This.
763180	763860	This case.
763860	764420	Less.
764420	764780	I.
764800	767240	A simple one.
767240	767500	That is.
767520	768380	Third-party websites.
768380	768700	Can be understood.
768700	769080	For example.
769080	769500	A.
769500	769980	Call.
770280	770740	Uh.
770740	771320	I do a.
771320	771680	Purple station.
771780	772460	SSO station.
772460	772740	Now.
773280	773880	Delivered to me.
773880	774300	That is.
774300	774880	I.
775000	775900	After this.
775900	777060	Single-point login.
777060	778060	He gave me a.
778060	778960	Verification information.
779060	779480	Now.
779480	779760	Generally.
779760	780100	For example.
780620	781820	Passed through the cover.
781880	782680	Directly in the parameter.
782680	783820	Add such a token.
785100	785920	Uh.
786240	787180	And then.
787220	787780	There is.
787780	788180	Now.
788180	788900	There is a way to attack.
788900	789160	That is.
789160	789820	On my page.
789820	790060	For example.
790060	790760	Sign a picture.
790760	791120	I can.
791120	791960	Through the method.
791960	793040	To read.
793340	794040	Current.
794040	795160	This page.
795160	796460	This URL.
796900	797360	But.
797360	798120	This.
798800	799440	But.
799440	799980	This station.
799980	800720	This content.
800720	801960	Book.
801960	802180	Kafka.
802180	802880	But.
804540	805540	No.
805540	805800	No.
807720	808800	I'm.
812580	813660	Hang.
821160	821700	No.
821700	823040	I am.
823040	823060	No.
823060	823180	No.
823180	823720	No.
824080	824120	No.
824120	824880	I am.
826400	826940	No.
826940	827000	No.
827000	827700	I am.
829160	829320	No.
829320	829520	No.
829520	829940	No.
830060	830600	My.
830600	830700	I will be.
830700	834140	For example, if another station wants to use my account,
834700	837660	it will use JSONP.
838140	842000	If the other side uses JSONP,
842000	844040	there will be an XSS bug.
844140	847900	But we can't control the content.
847900	851700	It's because the content is generated in the user's account.
852080	853620	What should we do if we want to control the content?
853700	856260	Let him log into my account and I write the content.
856260	859700	Maybe we can complete an attack on the third-party website's XSS.
862900	868040	There is another way to interact with the third-party.
869220	873980	There are many websites that can bind a third-party account to log in.
873980	880700	This third-party account can bind Weibo to log in.
880700	886500	I can ask the attacker to log into my Weibo account first.
886500	892140	Then I will guide him to complete the binding process automatically.
892140	898380	Of course, this binding process will require some loopholes to complete the automatic binding.
898420	900820	I can ask him to log into Weibo first.
909520	915460	For example, the request to log into Weibo may be such a request.
916800	921860	Generally speaking, I have seen a lot of requests that basically do not do this CSO protection.
921940	928100	After I let the victim log into my Weibo account, I will guide the user to click on this request.
928100	930420	Let him visit the page in various forms.
930420	933720	Then he will complete the automatic binding of this Weibo account.
934240	937020	In fact, he binds my attacker's Weibo account.
937220	941300	Then for my attacker, I just need to log in.
941300	944360	Then go to this station and use the Weibo account to log in.
944360	946320	You can log in to his station.
950420	954180	This may require some processes for OAuth.
954440	959280	You may understand a little bit about the third-party interaction process.
959520	962100	This may take a long time to say.
962240	964600	You can take a quick look.
966560	979040	Of course, the process of letting the victim automatically complete the binding of Weibo is not that simple.
979040	982200	That is to say, that is one of the worst scenarios.
982800	989700	In fact, many stations may force you to enter the password of Weibo when binding.
989700	993480	Even if your Weibo is logged in, it will still ask you to enter the password.
993480	997640	But Weibo has a parameter called false login.
997640	998700	It is equal to true or false.
998700	1003160	You can control whether he is using a password login or a current login type.
1003180	1008980	Then some stations will also put this parameter in the previous link just now.
1009280	1012260	So you may directly guide the user to add this parameter.
1012260	1016120	In fact, it requires you to forcibly use a password again.
1016120	1019040	You can also achieve the same effect.
1020800	1030900	Then there are even some stations that have completed the interaction with Weibo's OAuth.
1031160	1037940	There is no verification of its callback link status.
1037940	1042500	Because the status function in OAuth is a verification.
1042500	1043920	This is a self-token.
1043920	1051480	In order to prevent some attackers from directly using the bound link to let users visit,
1051480	1053400	it can have a status to verify.
1053400	1056720	Verification means that this request is from my original station.
1056720	1058820	It is a legal request.
1058820	1062060	But there are also many stations that do not do this status verification.
1062260	1067480	Then you don't even have to say that I just used the previous complicated process to send a request to the user.
1067480	1070520	It will complete the binding of your Weibo account directly.
1071400	1073800	Then there are some status verification cookies.
1073800	1075220	Verification is put in the cookie.
1075220	1077900	It is also very simple.
1079940	1086560	Similarly, if you find such a site cookie interface, you can directly forge its status.
1086640	1093100	Generally speaking, I think the self-token should be said to have some signature mechanisms generated by your server.
1093100	1095140	It's not that simple.
1095140	1099140	It means that I rely on a value in a cookie to verify.
1101320	1105600	Some stations even put the value in front of the status.
1105600	1106880	The status is put in the back.
1106880	1109260	In this way, users do not need to find the status cookie interface.
1109260	1116360	As long as you can find a function, you can write a value and write the status value into any cookie.
1116360	1121640	You can use the value of the key to be the status value of your verification.
1121640	1123320	Of course, it's a bit messy.
1123320	1128780	That is to say, if it is written in this way, it will be simpler.
1128780	1131860	In terms of tools, you don't need to find a site cookie interface at all.
1131860	1137540	As long as you can control a cookie, for example, I search for a record or a value.
1137540	1140380	As long as you can find another function to control this value, it will be fine.
1143360	1145860	I mentioned this loophole on Wuyun before.
1147800	1148840	I found a station at that time.
1148840	1150240	At least half of the stations have this loophole.
1150240	1150840	Then I mentioned it.
1150840	1152780	Then I went to see it some time ago.
1152780	1155540	Basically, many stations are not well repaired.
1155540	1157580	Or there will be some problems with the repair.
1157580	1160200	There is also a scene here.
1160200	1166100	In fact, the binding of OAuth is a kind of anti-CTOF attack.
1166100	1170760	But many of our users have wrapped their own page in front of them.
1172440	1174560	Wrapped a page similar to that.
1174560	1180200	If you don't do this page, the CTOF protection that OAuth helps you do in the middle will be useless.
1180200	1183220	So you have to do this CTOF protection in the initial situation.
1183220	1192550	What I just said may have something to do with the interaction with third-party websites.
1193170	1194210	There is another one.
1195170	1200270	In fact, the account that the other party logged in to my account is different from the account I use.
1200590	1202690	For example, where is the difference in content?
1202690	1204430	That is to say, the environment is different.
1204650	1206010	The other person's environment is different from mine.
1206010	1209610	Internet, Internet environment, IP, browser are all different.
1209610	1214310	We may be able to use the other person's online environment to make some other breakthroughs.
1214310	1216910	For example, I saw some stations before.
1216910	1219450	For example, there will be some discount activities.
1219650	1222150	Maybe only for employees.
1222370	1225190	Or for certain IP lists.
1225190	1227530	For example, you can't grab the coupon yourself.
1227850	1230430	You can say, let him log in to your account.
1230430	1234330	If there are some basic CTOF loopholes in this coupon-grabbing function,
1234330	1237650	you will cooperate with him to help you complete this coupon-grabbing.
1237870	1242610	Or some requests that can only be realized by the other party's employees or them in the internet.
1245430	1249930	And then there is the interference of Suyuan after the coupon-grabbing.
1249930	1255590	That is to say, if I, as an attacker, grab a coupon,
1255590	1258390	and then I don't dare to use it after I grab it.
1258390	1262570	Because the other party may find out about you based on some logins.
1262570	1267430	And then if I want to interfere with the other party's Suyuan,
1267430	1271350	I can put this account at the same time.
1271870	1275150	For example, if I put this attack method on an online page,
1275150	1277750	let hundreds of thousands of netizens log in to this account,
1277750	1278650	and then I also log in.
1278650	1281430	In this way, you will confuse the other party's Suyuan.
1282170	1283730	This is just an example.
1283730	1286410	Maybe the use of the scene is not very big.
1286410	1287590	No one will do this.
1289530	1293470	And then there is even that I want to maliciously post on the Internet.
1295450	1297090	I don't want to use my identity.
1297090	1298630	I can let the other party log in to my account.
1298630	1305030	And then cooperate with some CSO loopholes or some other loopholes.
1305030	1307390	You can let the other party complete these malicious posts.
1307390	1309310	In this way, you can hide your identity.
1315560	1316860	There is another way.
1317420	1322200	We control the content on the victim's browser.
1322480	1323420	And then this content,
1323420	1326740	it is not just a combination with the victim himself or some websites.
1326800	1330280	It may also be seen by some third-party field factors.
1330820	1334280	For example, his girlfriend is a police officer.
1334280	1335780	How do you say this?
1336200	1337260	Let me give you an example.
1337260	1344420	For example, you and your colleague like another female colleague at the same time, right?
1344680	1347100	And then your colleague caught up.
1347100	1348840	And then you are very unhappy.
1349840	1353360	And then you think of this way.
1353360	1357440	And then let your male colleague log in to your account.
1358220	1360240	I log in to all kinds of accounts on the Internet.
1360240	1363040	Some, for example, publish content, Weibo, all kinds of accounts.
1363320	1365600	And then this account is controlled by me.
1365600	1369340	Some messy, very dirty content is posted on it.
1369340	1373320	And then I told this female colleague that you don't know your boyfriend.
1373320	1375460	In fact, your boyfriend is a pervert.
1375700	1377780	It's a devil, right?
1377780	1380300	And then I don't believe you go to his house.
1380300	1381400	And then his girlfriend.
1381400	1383260	And then go to this male colleague's house.
1383320	1386840	One day I secretly turned on his boyfriend's browser.
1386840	1391440	I suddenly found out that his boyfriend posted these messy content on the front page.
1394740	1402480	Basically, if I let you control your content in many pages on the Chinese website.
1402560	1405420	You basically don't have time to look at them one by one.
1405420	1407580	And most of them are using mobile phones now, right?
1407580	1410360	A browser like this may just work for a while.
1410360	1411320	And then it's over.
1411620	1412980	Of course, this is also an example.
1412980	1420680	I think you can even say that after you have a girlfriend, you want to do more.
1420680	1421500	I'm afraid he'll take it back.
1421500	1425160	You can even frame him for sending some malicious content to the police.
1425160	1427580	Even the police saw it.
1427580	1430160	Of course, I'm not just using this scene as an example.
1430240	1433280	I think it's normal to find a girlfriend.
1433280	1436180	It should be done in a fair and open way.
1436320	1438840	Don't use this way, right?
1438840	1439880	Rich people rely on money.
1439880	1441380	Talented people rely on talent.
1442600	1446240	If you don't have money or talent, you can rely on your looks like me.
1448220	1452100	I know I'm getting fat in the middle of the year now.
1452920	1454780	I've come to realize this problem in the past few years.
1460040	1461840	And then there's another scenario.
1462740	1467220	I used to have a mailbox.
1467240	1468360	It's also a case of miscarriage.
1470320	1473900	Because a person may have a lot of mails in this station.
1473900	1476420	And then this station is for the convenience of the user.
1476420	1481020	That is to say, you can tie another account of your station to a mailbox at the same time.
1481020	1483180	You can manage two mails at the same time.
1483320	1485340	But this is tied to another account.
1485340	1486040	This login interface.
1486040	1488680	Sometimes if you don't do some CSO protection,
1488680	1493160	I can let the other party unknowingly bind my account.
1493160	1495340	In this case, I can log into my account again.
1495340	1497180	You can see the content of the other party's mailbox.
1499020	1503500	And then there are some stations that allow users to bind some third-party accounts.
1503500	1504840	It's not the account of this station.
1506120	1508040	For example, the relationship between these two stations is better.
1508040	1510120	It can be said that the user logs in.
1510120	1511120	You're bound.
1511660	1513380	And then bind another account.
1513380	1515000	You can log in with each other.
1515000	1516780	It's a little bit like this.
1517400	1519660	SSO is a single-point login method.
1519660	1521480	You can also use the previous one.
1521480	1523000	It's similar to the one just now.
1523000	1525020	Binding third-party accounts to log in.
1525020	1528260	If he wants to use the password directly.
1528260	1530220	It can also be used in a similar way.
1530220	1532320	C-SERV login C-SERV
1532320	1533940	This way of attacking.
1535060	1538660	This actually achieves a countdown effect.
1539580	1541220	And the other party may not know yet.
1541220	1542700	Bind your account.
1546090	1548190	And then we have these web pages.
1548190	1550890	Let's go up and think about it.
1551910	1553330	A lot of browsers now.
1553330	1555750	It has a function of an account.
1555750	1558130	It's like a voice browser.
1558130	1559810	And these accounts.
1560850	1562090	After logging in to the account.
1562090	1564190	It will help you synchronize some collectors.
1564190	1565690	Your visit records.
1565830	1568310	Some of them even have your browser configuration.
1568310	1569690	Including even some of your passwords.
1569690	1571770	Now there are synchronized.
1571770	1573690	And then the general browser login.
1573690	1575190	It should be a...
1575950	1577390	You're on the outside.
1577390	1579410	It's not supposed to be a browser login.
1579410	1580910	But now a lot of browsers log in.
1580910	1583110	For the convenience of interaction.
1583110	1585590	Or to integrate some third parties.
1585630	1586830	Now some browsers log in.
1586830	1589210	It will also support some third-party QQ, Weibo.
1589210	1591110	These authorized logins.
1591110	1592770	Its interaction process.
1593670	1594730	I've seen some cases.
1594730	1595690	Some are problematic.
1595690	1597470	You can fake some requests.
1597910	1602050	Let it open the request in the browser.
1602050	1602610	Log in.
1602610	1603910	And then it's done.
1603910	1605910	This is the effect of a browser login.
1606710	1609370	Once you control its browser in this way.
1609370	1610150	Some of its malicious...
1612890	1613450	These...
1614370	1615670	From a reading point of view.
1615670	1617730	You can look at some of its collectors.
1617730	1619270	Its visit records.
1619330	1620490	From a writing point of view.
1620490	1622410	You can write some malicious plug-ins.
1626200	1627480	Of course, this...
1628260	1629800	I won't go into the details of this loophole.
1630060	1630620	I...
1631380	1632360	To prepare.
1632360	1634580	I've seen about ten browsers.
1634580	1636740	One or two of them can be realized.
1636840	1638080	And then the others.
1638760	1640200	There may be more.
1640200	1641980	Other aspects of the loophole can be realized.
1642280	1642840	This attack.
1642840	1644380	Of course, there is the most common way.
1644460	1646200	I just log in from his computer.
1646560	1648440	Because a lot of people use browsers.
1648440	1649280	It doesn't have to be tied up.
1649280	1650380	You tie it up for him.
1650380	1651880	He may not be able to see it.
1655700	1658380	And then there are some attacks like Apple.
1662380	1663220	Like some...
1663900	1665360	Apple's ability is stronger.
1665360	1666480	He can talk to you.
1666480	1668840	Some photos of local storage.
1669740	1671520	Some files are operated.
1671520	1673360	You may have some interactions with Apple.
1673540	1675760	If you can control the other party.
1675760	1676900	For example, the type of network disk.
1676900	1678100	What kind of notebook.
1678660	1681020	You can control the other party's account.
1681020	1682740	Some of his privacy information.
1682740	1685400	Including pictures may be synchronized with you.
1686100	1687440	And then.
1687440	1689100	How to attack.
1689100	1690520	I've seen it.
1691380	1693580	Some apps are now.
1693580	1696620	In the open WebView.
1696620	1698300	If you log in.
1698300	1700460	He will also complete the login of this app.
1700480	1701960	They are a shared.
1702080	1703400	Storage quality.
1703400	1705180	There are some other apps.
1705180	1707680	For example, other products of the same company.
1708020	1709380	Some logins.
1709380	1710800	He will have some interfaces.
1710800	1713280	Some of those interfaces.
1713460	1715340	The quality that can be transmitted.
1715740	1718180	As long as you can guide.
1718360	1719360	Through some WebView links.
1719360	1721040	Guide him to open such.
1721040	1722140	Scheme.
1722600	1724560	It is also possible to give him a quality.
1724560	1725780	Complete the login of your account.
1732350	1734330	Then there is a kind of background configuration.
1734330	1736110	There are some management backgrounds.
1736210	1738570	For example, he can match some FTP accounts.
1738590	1739650	Or some.
1740290	1742290	Memory cache accounts.
1742610	1744650	These accounts are actually his.
1744650	1746890	It's just a user password.
1746890	1747350	This account.
1747630	1749270	If this request is not done.
1749270	1751950	If you know his features.
1751950	1753390	For example, open source software.
1753390	1756170	You know the details of such implementation.
1756170	1757290	You can send him one.
1757290	1759170	Such a request.
1759190	1760290	He may be a manager.
1760290	1762090	He bound your village account.
1762090	1763130	He may not even know.
1763130	1764590	He may also use the website normally.
1764590	1766050	He is actually using your.
1766050	1767870	A remote back-end server.
1768290	1769670	But these contents.
1769670	1771130	Have been seen by you.
1771130	1772570	You can read and write.
1779700	1782160	And now there are some routers.
1782160	1784480	Also realized some cloud account management.
1785740	1787120	If the router.
1787240	1788420	If the mobile account.
1789000	1790740	In fact, the attack.
1791740	1794020	From a reading point of view.
1794020	1794720	Relatively limited.
1794720	1796000	I can read your.
1797060	1798720	Some online equipment information.
1798880	1800380	And then from a writing point of view.
1800380	1802220	You can change your DNS.
1802880	1803680	Change DNS.
1803680	1805200	This is JTDNS.
1805200	1806160	This is more harmful.
1806160	1807120	Can be controlled.
1807220	1809000	And then read this one.
1811620	1813240	In fact, the harm.
1813480	1814560	Is not big.
1814560	1815580	Know one.
1815920	1817340	Know one.
1817340	1819120	For example, you.
1819360	1820660	You and your girlfriend.
1821400	1822740	After configuration.
1823060	1825080	Bought a router.
1825080	1826840	You configure your cloud account for her.
1829000	1830040	You.
1830160	1831140	Look at her.
1831340	1832400	Watch her every day.
1832400	1833860	This is called online terminal information.
1833860	1835580	In fact, it feels like nothing has been leaked.
1836700	1838320	But you have to think about it.
1838420	1839760	If one day at night.
1839760	1840840	When you just went to bed.
1841140	1842800	Open this cloud account again.
1843180	1844540	Suddenly see above.
1844540	1845500	There is an online terminal.
1845500	1848500	For example, what is called Wang Xiaogang's iPhone.
1849340	1851560	But you may be a little confused.
1851560	1853280	Why is your girlfriend's house online?
1853620	1855340	Obviously an iPhone with a man's name.
1855880	1856800	That is to say.
1856800	1857900	Maybe this equipment name.
1857900	1858480	It doesn't count.
1858480	1860780	But it may be in a specific scene.
1860780	1862020	It may leak.
1862020	1863940	A very important piece of information.
1863940	1867380	Or some stories behind it.
1869700	1870760	Of course, some people say.
1870760	1871900	Your scene is useless to me.
1871900	1872900	I am a technical man.
1872900	1874240	How could I have a girlfriend?
1875140	1876900	But in our case today.
1876900	1877620	You have a girlfriend.
1877620	1880480	You just grabbed a girlfriend from the previous colleague.
1886960	1887940	In the same way.
1888300	1889580	You go out again.
1889580	1891160	In addition to 6.7.
1891160	1893240	Now there are a lot of smart homes.
1894200	1895300	Originally this smart home.
1895300	1896300	The whole internet is used.
1896300	1899000	But everyone is still for some convenience of life.
1899000	1900420	Let him use some cloud accounts.
1900420	1902480	Will synchronize these information to the cloud.
1903240	1904600	For example, the camera.
1904600	1906480	If you log in to this account.
1906480	1909480	You can watch the other person's content remotely.
1909600	1910500	You include.
1911000	1912820	Now even some weight scales.
1912820	1914200	He has a cloud account.
1914200	1917340	Let you observe your weight changes every day.
1917340	1918080	Some.
1918660	1920560	Give you some weight loss.
1920560	1922080	Some training plans.
1922080	1924780	The same logic just now.
1924780	1926200	Everyone wants to say.
1926760	1927660	For example.
1927660	1929040	Buy a weight scale for your girlfriend.
1929040	1930540	Help her match your account.
1930580	1933660	Then you look at your girlfriend's weight every day.
1933880	1934980	Very happy.
1935020	1937500	Watch her lose weight every day.
1937500	1939180	Think about what she has done for me.
1939540	1940560	Afraid of losing me.
1940560	1941640	Lose weight there every day.
1941960	1943860	But you suddenly find out one day.
1943860	1945060	There is a weight above.
1945480	1947540	For example, 80 kg.
1948340	1949480	You think about this scene.
1949480	1950720	Do you think it's terrible?
1950720	1953460	Why at 7 o'clock in the morning.
1953460	1955040	There is a weight of 80 kg.
1955380	1956360	This behavior.
1959700	1961900	Of course, this kind of attack.
1961960	1963400	It's not that simple.
1963400	1965040	Either by archiving.
1965040	1966080	There is another way.
1966520	1967940	He will have some.
1967940	1969520	In the process of binding accounts.
1970100	1971880	There may be some loopholes.
1971880	1973380	I didn't take a close look at this one.
1973380	1975380	But I used one or two.
1975380	1977740	I think it is possible to achieve an attack.
1982290	1983470	What I just said.
1983470	1985670	Are the users' attacker accounts.
1985670	1986730	Some ordinary content.
1986730	1988550	How to control some ordinary content.
1988550	1990910	If my attacker's account.
1991730	1993630	The content written in the net.
1993810	1995710	If there are some bigger privileges.
1995710	1996510	For example.
1997010	1999210	There are still some XSS loopholes.
1999750	2001950	This is generally called.
2001950	2003390	Generally speaking.
2003390	2004010	For example.
2005610	2006070	For example.
2006070	2007250	The content of the acquisition address.
2008810	2011210	If there is a XSS loophole in the display of the acquisition address.
2011210	2012610	This kind of XSS loophole.
2012610	2013730	We generally call it self-XSS.
2013730	2014510	That is to say.
2014530	2018510	You can only see this XSS after you log in.
2018710	2020510	You can't attack others.
2020710	2023050	If I want to attack others.
2023050	2023750	I can only say.
2023750	2025250	Let the other party log into my account.
2025250	2026790	He can see this XSS.
2026790	2027830	But this XSS.
2027830	2031070	If you steal a cookie.
2031070	2033210	Or the resource of operating this account.
2033350	2034250	That is meaningless.
2034250	2035790	Because this is your account.
2036190	2037790	So it doesn't make sense for you to send it to the other party.
2038370	2039370	But.
2039890	2040810	XSS.
2040950	2043070	It's not just stealing cookies.
2043330	2045890	It's just how everyone uses it now.
2045970	2047770	It can do a lot of other things.
2047770	2048550	For example.
2048590	2049830	Operate the storage of the browser.
2050910	2053170	It can attack other stations.
2053170	2053610	Including.
2053610	2056170	It can achieve a fishing effect.
2056170	2056490	Including.
2056490	2058710	It can also steal some information from other stations.
2060190	2061610	Some sensitive information.
2062170	2062830	Of course.
2062830	2066690	This kind of attack also requires the other party to log into our account first.
2068370	2069210	Then.
2069210	2070050	Think about it.
2070270	2071830	This is more intense.
2071830	2074390	Self-XSS can achieve those attacks.
2074510	2075670	Self-XSS.
2075670	2077670	I don't think it's accepted in some SACs.
2077710	2078470	Or DUA.
2078470	2079930	Some don't even accept it.
2080590	2082690	But if this Self-XSS.
2082690	2084250	Let the other party log into my account.
2084250	2085270	What can it do?
2085270	2086370	For example.
2087770	2088770	Let it.
2088770	2089050	For example.
2092190	2094190	Let it log into my station.
2094190	2094730	Then.
2094730	2096650	This station has a Self-XSS.
2096770	2097630	I can.
2097990	2099950	Under the pretext of Website.com.
2100470	2101870	You can plant any cookie.
2101870	2104050	If there is a station.
2104050	2105810	Website.com.
2106110	2108290	It has a cookie-based Self-XSS.
2108970	2110290	Cookie-based Self-XSS.
2110290	2111730	So that I can use it.
2111730	2113030	This whole process.
2113030	2114770	It forms a.
2114770	2117130	B.website.com.
2117270	2119770	A cross-section similar to a reflective cross-section.
2120050	2121970	This is what I used to be.
2124730	2125770	QQ.
2125890	2127630	I found it over there.
2127630	2129590	Because the WAF over there.
2129590	2130770	The reflective cross-section.
2130770	2132070	It's all very well protected.
2132070	2133490	And then maybe on some.
2133730	2136110	There may be no protection on the storage.
2136150	2137590	And then you can only use one.
2137590	2138790	In a very complicated way.
2138790	2141090	To achieve a XSS attack.
2141610	2142930	And then you can also.
2143270	2145030	You can also go to the front end browser.
2145030	2146690	For example, local storage.
2146690	2148150	You can write something in it.
2149030	2150790	Some stations are in local storage.
2150790	2152050	There is no block user.
2152110	2153790	That is, I can say.
2153790	2154810	Let it log into my account.
2154810	2156030	After I finish writing something.
2156030	2157410	I will launch this account.
2157410	2158750	And then when the user logs in.
2158750	2160230	It may be from this storage.
2162310	2164630	Some functions on the page may show.
2164630	2165670	The content of this storage.
2165850	2168030	But this content is what I used to control.
2168250	2170050	It can also be achieved in a similar way.
2170050	2170850	There is a fishing.
2170850	2171970	Even some.
2171970	2173510	If it is rendered in a problem.
2173510	2175510	Some XSS attacks may be achieved.
2180080	2181780	And then there is a very simple one.
2181860	2183700	There is a peer-to-peer strategy attack.
2183700	2185200	That is, I have two stations.
2185200	2190580	At the same time, we set the document.domain to root.
2190580	2191620	If it is equal to root.
2191620	2193620	We can implement.
2194240	2196340	The operation of peer-to-peer JS.
2197500	2199500	So I have a.
2199500	2201240	A station of cipher XSS.
2201240	2203260	I can actually.
2203260	2204000	It may be.
2204000	2205420	Control a station of B.
2205980	2207100	XSS.
2211140	2212940	Then there is fishing.
2212940	2214220	That is, I may.
2214680	2215580	There is no.
2216700	2217660	Those loopholes just now.
2218000	2219120	I can.
2219320	2220480	Directly control this content.
2220480	2222660	Let it not directly log into my account.
2223860	2224520	For example.
2225360	2226940	The other party logs into the account.
2227380	2227940	XSS.
2227940	2230480	Tell you what the password is dangerous.
2230480	2230980	Please modify.
2230980	2232220	Or your account is at risk.
2232260	2233680	Please modify the new password.
2233680	2234600	Then the other party.
2234900	2237040	He may not necessarily go to the upper right corner at this time.
2237040	2237820	Or where.
2237820	2239180	What is the name of this log in account.
2239400	2241640	He may quickly modify the password.
2241640	2243460	In fact, you may be able to steal the password at this time.
2243760	2245760	You can also talk about some more content.
2245760	2247140	You can do some.
2248720	2250020	Similar to fraud.
2250800	2252380	I don't know if everyone has seen it.
2252380	2252840	There is a.
2253220	2255580	There was a movie a while ago.
2255800	2257660	There are several children in it.
2257660	2260020	Is the account of the big boss.
2260460	2261720	After receiving his password.
2261720	2262620	After going in.
2264820	2266000	In the game scene.
2266000	2268320	Modified the big boss exit.
2268500	2269980	Similar to an exit scene.
2270000	2271520	In fact, the big boss saw the scene.
2271520	2272560	It's not true.
2272600	2276120	They both used the same account.
2276220	2277840	Then this side is.
2278260	2280460	The whole interface of his exit game.
2280660	2281380	All changed.
2281880	2284220	Let the big boss think he was kidnapped.
2284220	2285320	Then put.
2286120	2286980	I forgot the content.
2286980	2288760	Anyway, this kind of fraud was realized.
2294200	2295240	Then.
2295240	2296140	Uh.
2297560	2298580	Self-test.
2298580	2299820	You can also steal some other information.
2301320	2302440	We call it.
2302440	2304820	This example of SSO.
2305240	2306220	Generally speaking, SSO.
2306220	2307280	After you log in from SSO.
2308160	2310600	Most of them are now through this.
2311680	2312600	Uh.
2312720	2313960	Get the way.
2314080	2315100	For example.
2315260	2318620	You send him a single-point login request.
2318620	2320200	Say I want to log in to this page.
2320200	2322160	You help me see if it is logged in.
2322160	2323520	Then he tells you that it is logged in.
2323520	2324780	Then send you a ticket.
2325440	2326060	Uh.
2326180	2328060	If it comes from SSO.
2328720	2330880	The premise is that the other party has logged in to our account.
2331060	2331820	Then.
2332280	2333420	But his SSO.
2333420	2334880	It's still his own account.
2334880	2335740	Generally, this kind of war.
2335740	2338040	Separate from the SSO.
2339680	2340680	In this case.
2340680	2341560	If it's separated.
2342020	2342480	Uh.
2342480	2344700	The other party put his own account.
2344700	2347140	Uh.
2348120	2350920	Uh.
2353180	2355760	Uh.
2359300	2360740	Uh.
2360740	2361960	Uh.
2361960	2362800	Uh.
2362800	2363540	Uh.
2363540	2363640	Uh.
2363640	2365960	Uh.
2367040	2367100	Uh.
2367100	2368180	Uh.
2368180	2369180	Uh.
2369740	2370420	Uh.
2370420	2372140	Uh.
2373160	2379500	You can read the Ticket parameter from the Login page.
2387710	2390730	You can read the Ticket parameter from the Login page.
2390730	2393590	There is another situation.
2394290	2397250	It is a more perfect way to do it.
2397390	2401170	After receiving the Ticket through the middle page,
2401370	2403850	I can jump to the target page through 302.
2404730	2413270	At this time, CFXSS doesn't have a chance to get the Ticket value.
2413590	2417730	Because there is no Ticket in the front page,
2417730	2419010	and you can't even read the Refer.
2419190	2422150	Because the 302 jump is to pass the Refer in front,
2422150	2424370	not the Refer in the middle of the Login page.
2426850	2430150	At this time, I did this in a previous attack.
2430150	2433130	I did it this way.
2433530	2442890	You can use CFXSS to move a cookie in the supermarket,
2442890	2452950	and then use iFrame to guide it to issue a single-point login request.
2453150	2456430	When the single-point login is passed to the Ticket in the middle page,
2456430	2464110	it is already in the supermarket cookie.
2464550	2468030	If you know, there is a rejection service called supermarket cookie.
2468330	2472930	If the cookie is too long, the server will report it wrongly.
2472930	2474930	This page will fail to load.
2474930	2479230	It won't go to my target page anymore.
2480070	2484530	At this time, we can use ContainerWindows.Location
2484530	2491150	to read the content of the URL page in the current iFrame.
2495050	2496810	There is also an advantage of this method.
2496810	2499310	The simple way is to say that we stole the Ticket.
2499550	2502850	If some accounts do this kind of Ticket anti-repetition,
2502850	2505370	after the other party uses the Ticket,
2505370	2507790	even if you steal it, it will fail if you use it again.
2507870	2509210	If you steal it in this way,
2509210	2517370	it means that the Ticket in the middle of the login page is not used.
2517370	2519950	Because this request has already failed.
2519950	2523870	So the Ticket you stole at this time is still valid.
2525950	2529390	So from the case just now,
2529390	2532570	this kind of accumulated loophole,
2532570	2535530	if you cooperate with the other party to log into my account,
2535530	2538790	in fact, it can produce a lot of attack scenarios.
2540530	2541630	That is to say,
2541630	2546550	this kind of ineffective attack on some stolen cookies or operating resources is useless.
2551140	2553760	And this is the picture I put in the beginning.
2553760	2557420	That is to say, from different dimensions,
2557420	2560620	from writing content to reading content to your content,
2560620	2564200	does it have a greater code execution ability?
2564200	2565680	And then combined with different scenarios,
2565680	2569660	there will be some attacks in different scenarios.
2576700	2582540	And this kind of attack is not to tell everyone how to do some bad things.
2582540	2584760	That is to say, this kind of way,
2584760	2586900	that is to say, to tell everyone that there may be this kind of attack,
2586900	2589280	it will bring some harm.
2589280	2594320	And these attacks all take advantage of some very small loopholes.
2594320	2595500	Basically, these loopholes,
2596260	2598420	I may not be able to mention them to others.
2598420	2601140	I can't say that you didn't do CSS protection for a login form,
2601140	2604620	or some things that your page transmitted with GET.
2605120	2606640	That is to say, it's hard to mention.
2606640	2608540	These are all very small loopholes.
2608540	2612080	But these loopholes are usually very easy to fix.
2612080	2615100	Because it can be combined with many different loopholes,
2615100	2617740	it may pose a great threat to the user.
2617980	2622620	And try to be as sensitive as possible,
2622620	2629020	or some of them, including the user name display in the upper right corner,
2629020	2632420	may be a little more eye-opening.
2632420	2635220	That is to let the user know that when I am operating,
2635220	2636400	I am currently logging in.
2636400	2638440	Is it my own account?
2640200	2644860	Then there are some CSS protection, including login form,
2644860	2649100	even some requests for SSO and third-party interaction,
2650060	2652600	including even the request to exit the login.
2652960	2655640	For example, some CSS protection must be done.
2660160	2663120	Even some of them may not be external scenarios,
2663120	2664420	such as the app end.
2664520	2667000	For example, if someone gives you a certificate,
2667000	2668880	you must educate which source.
2670260	2672200	This is actually a very important principle in security,
2672200	2673620	which is basically called certification.
2673620	2676320	That is, whoever gives you something must have a basic certification.
2676320	2681740	Whether you are through some password or some...
2681740	2683740	I think the password may not be enough.
2683740	2685020	At least it should be basic.
2685640	2686580	In general, for certification,
2686580	2688040	you basically need to do a signature certification
2688040	2689840	to confirm that it was sent by the other party.
2689840	2690560	If it is not sent by the other party,
2690560	2692980	it may be used by some attack scenarios.
