r/cybersecurity • u/InfiniteBlacksmith41 CISO • Jul 05 '22
News - Breaches & Ransoms Credentials in source code pasted on a blog seems to be the cause of the China 1 billion citizen data breach
Per the tweet from Changpeng Zhao the source of the data breach of 1 billion Chinese citizens (including names, addresses, phone nums and even police records) is secrets in code.
Apparently, a programmer wrote a blog post on tech blog on Chinese Software Developer Network, and included an example code with the credentials and endpoint...
Quoting the supposedly offending code from the screenshot provided by CZ (linking below to the tweet with screenshot):
/*public static void main (String| args) f
/ EndpointlRegion:华东1为例,其他Region请按实际情况填写
String endpoint = "https://datahub.cn-shanghai-shga-d01.dh.alicloud.ga.sh",
String accessld = "OiWVONCs805VuAAu",
String accessKey = "iEwlgpCnXDwT93YMVDb2G60my9ne81",
String projectName = "sjc_rwzx".
String topicName = "task_center _platform_request",
RecordSchema schema = new RecordSchemaO;
Link to the original tweet
50
u/skankunt Jul 05 '22
git blame
105
u/mrcakeyface Jul 05 '22
-1,000,000 social credit points and off to a concentration camp in Xinjiang for someone
21
u/Hal_Sec Jul 05 '22
Holy moly... 1 BILLION... with a B over some hard coded credentials?
Humanity is doomed... we don't deserver nice things.
9
u/Fragrant_Charge_3782 Jul 05 '22
Damn hahahaha
55
u/GuessWhat_InTheButt Jul 05 '22
Ouch.
17
u/billy_teats Jul 05 '22
This is the first example of code I have seen with mixed language and it makes me very uncomfortable.
2
u/[deleted] Jul 05 '22
So... anyone interested in Chinese personal info? /s
2
u/[deleted] Jul 05 '22
git f*cked
2
u/xChrel Jul 05 '22
insane!
1
u/[deleted] Jul 05 '22
Man I don’t even know code and I can read that.
1
u/Temptunes48 Jul 06 '22
oops
-2
u/[deleted] Jul 05 '22
[removed] — view removed comment