Free Republic
Browse · Search
General/Chat
Topics · Post Article

Skip to comments.

‘Trojan Source’ Bug Threatens the Security of All Code
KrebsonSecurity ^ | 1 November 2021 | Brian Krebs

Posted on 11/01/2021 11:04:40 AM PDT by ShadowAce

click here to read article


Navigation: use the links below to view more comments.
first 1-2021 next last

1 posted on 11/01/2021 11:04:40 AM PDT by ShadowAce
[ Post Reply | Private Reply | View Replies]

To: rdb3; JosephW; martin_fierro; Still Thinking; zeugma; Vinnie; ironman; Egon; raybbr; AFreeBird; ...

2 posted on 11/01/2021 11:04:57 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Not clear to me what this can do. The string literal is read and has BiDi control characters. Will it just change the direction of how the characters are displayed in the browser or other software? Does the BiDi code keep reading until it finds another control character, thus causing a buffer read overrun enabling a buffer exploit?


3 posted on 11/01/2021 11:18:42 AM PDT by pierrem15 ("Massacrez-les, car le seigneur connait les siens" )
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

So if compilers disabled BIDI then Chinese and Muslim code hacks would be disabled? Just curious ...

;-)


4 posted on 11/01/2021 11:19:23 AM PDT by Tunehead54 (Nothing funny here ; - )
[ Post Reply | Private Reply | To 2 | View Replies]

To: pierrem15
Not clear to me what this can do.

That may be deliberate so black hats will have to figure it out.

5 posted on 11/01/2021 11:20:21 AM PDT by E. Pluribus Unum ("Communism is not love. Communism is a hammer which we use to crush the enemy." ― Mao Zedong)
[ Post Reply | Private Reply | To 3 | View Replies]

To: ShadowAce

Back to writing octal code for the PDP-8.


6 posted on 11/01/2021 11:28:00 AM PDT by Dr. Sivana ("There are only men and women."-- George Gilder, Sexual Suicide, 1973)
[ Post Reply | Private Reply | To 1 | View Replies]

To: pierrem15; E. Pluribus Unum
As E. Pluribus Unum pointed out, the description was not exactly clear. This is probably done on purpose. :)

But the scary part is it doesn't really matter what OS or software you use--it can be inserted everywhere as this is a sourcecode-level exploit that the compilers do not catch.

7 posted on 11/01/2021 11:46:13 AM PDT by ShadowAce (Linux - The Ultimate Windows Service Pack )
[ Post Reply | Private Reply | To 3 | View Replies]

To: ShadowAce

Or a developer could simply strip out all the comments from source code and leave only valid syntax to compile.


8 posted on 11/01/2021 11:46:17 AM PDT by Flavious_Maximus (Fauci is a murderer)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

This is in̯̦͚͍͇̩͑̓͆͒̍ͪteresting


9 posted on 11/01/2021 11:46:34 AM PDT by Bobalu (Figure out what you like, learn enough to be dangerous, and then start fiddling around)
[ Post Reply | Private Reply | To 1 | View Replies]

To: pierrem15

Not too concerned about it. They have to get it into your code. If someone got to my codebase, there would be more issues than them putting something like this into it.


10 posted on 11/01/2021 11:48:27 AM PDT by pas
[ Post Reply | Private Reply | To 3 | View Replies]

To: ShadowAce

Do we need to wear a mask or get a shot?


11 posted on 11/01/2021 11:50:54 AM PDT by OrangeHoof (Chinese communism will look different once the masks come off.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Seems a bit overblown to me as long as you are ingesting source code you just search for these control codes in the source. Could be done by the compiler with a TBD check but could equally well be done with a simple grep of a patch file.


12 posted on 11/01/2021 11:58:46 AM PDT by 2 Kool 2 Be 4-Gotten
[ Post Reply | Private Reply | To 2 | View Replies]

To: pas

I would suspect open source is more susceptible. And there is a lot of open source running on machines everywhere, so I would still like to see details on how this can be exploited.


13 posted on 11/01/2021 12:09:56 PM PDT by pierrem15 ("Massacrez-les, car le seigneur connait les siens" )
[ Post Reply | Private Reply | To 10 | View Replies]

To: ShadowAce

bkmk


14 posted on 11/01/2021 12:54:56 PM PDT by sauropod
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

Ah, not true.


15 posted on 11/01/2021 5:04:25 PM PDT by GingisK
[ Post Reply | Private Reply | To 1 | View Replies]

To: ShadowAce

I’ve always thought unicode was a =really= bad idea in anything but documents, and generally not really so good an idea there unless you’re trying to display kanji or something.

You should be able to turn the stuff off. I would imagine in the future that code editors will have bright flashy things for these ‘bidi’ codes.


16 posted on 11/01/2021 8:33:19 PM PDT by zeugma (Stop deluding yourself that America is still a free country.)
[ Post Reply | Private Reply | To 1 | View Replies]

To: pierrem15

I wonder if it has to do with programming languages that allow pragmas/commands within comments, perhaps like the shebang directives in bash?

https://bash.cyberciti.biz/guide/Shebang

ANY time data (or code comments) have a chance of changing context into code execution, you have a potential security vulnerability.


17 posted on 11/02/2021 1:30:41 PM PDT by mbj
[ Post Reply | Private Reply | To 3 | View Replies]

To: Bobalu

:-D


18 posted on 11/02/2021 1:31:47 PM PDT by mbj
[ Post Reply | Private Reply | To 9 | View Replies]

To: pierrem15

As you say, open source could be the most susceptible because anyone could submit a change...and because it looks innocent or perhaps even beneficial, it would be merged in.

At that point, however, it just becomes a question of social engineering, right?

Do you use _any_ open source software tools? Could you then somehow be vulnerable to the introduction of a persistent threat?


19 posted on 11/02/2021 1:35:24 PM PDT by mbj
[ Post Reply | Private Reply | To 13 | View Replies]

To: 2 Kool 2 Be 4-Gotten

One problem with trying to scan your own code is that there are SO many ways to encode unicode: hex string, octo encoding, XML constants, XML entity expansion or similar #define type defitions, etc... You only have to miss one.


20 posted on 11/02/2021 1:38:04 PM PDT by mbj
[ Post Reply | Private Reply | To 12 | View Replies]


Navigation: use the links below to view more comments.
first 1-2021 next last

Disclaimer: Opinions posted on Free Republic are those of the individual posters and do not necessarily represent the opinion of Free Republic or its management. All materials posted herein are protected by copyright law and the exemption for fair use of copyrighted works.

Free Republic
Browse · Search
General/Chat
Topics · Post Article

FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson