Bitcoin Forum
April 19, 2024, 08:42:29 AM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: IMPORTANT! There may be a glitch on this forum (Serious! Accidentally uncovered)  (Read 2142 times)
Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
June 25, 2016, 08:51:39 PM
 #1

https://bitcointalk.org/index.php?topic=1521348.msg15303430#msg15303430



I don't think that one should be able to embed content above the post's user's profile/above the fold.

Here's the code that I just changed to in seeing if you can make heads or tails as to how was accomplished, for I'm at sea.

Code:
[tr][td][/td] [td][url=https://bitcointalk.org/index.php?action=profile;u=537536][b]xavier77[/b][/url][/td] [td](F)[/td] [td][color=red][b]N[/b][/color][/center][/td] [td][url=https://bitcointalk.org/index.php?topic=1521348.msg15330030#msg15330030]June 23 03:28:12 AM[/url][/td] [td]218[/td][/tr]

It was changed from:

Code:
[tr][td]109[/td] [td][url=https://bitcointalk.org/index.php?action=profile;u=537536][b]xavier77[/b][/url][/td] [td](F)[/td] [td][center]Q[/center][/td] [td][url=https://bitcointalk.org/index.php?topic=1521348.msg15330030#msg15330030]June 23 03:28:12 AM[/url][/td] [td]218[/td][/tr]

EDIT: Found out how it was done prior to posting this thread. The following was omitted:

Code:
[center]

Not sure to what ends/extent, but I'm pretty sure a nefarious hacker could exploit such a glitch.
1713516149
Hero Member
*
Offline Offline

Posts: 1713516149

View Profile Personal Message (Offline)

Ignore
1713516149
Reply with quote  #2

1713516149
Report to moderator
Activity + Trust + Earned Merit == The Most Recognized Users on Bitcointalk
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713516149
Hero Member
*
Offline Offline

Posts: 1713516149

View Profile Personal Message (Offline)

Ignore
1713516149
Reply with quote  #2

1713516149
Report to moderator
1713516149
Hero Member
*
Offline Offline

Posts: 1713516149

View Profile Personal Message (Offline)

Ignore
1713516149
Reply with quote  #2

1713516149
Report to moderator
Cyrus
Ninja
Administrator
Legendary
*
Offline Offline

Activity: 3752
Merit: 2948



View Profile
June 26, 2016, 12:53:54 AM
 #2

I've contacted theymos about it.

Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
June 26, 2016, 01:26:00 AM
 #3

I've contacted theymos about it.

Hey, I forgot something. Do I send you or theymos my bitcoin wallet address for my 35 BTC finders fee?  Tongue Tongue Tongue
Felimon
Full Member
***
Offline Offline

Activity: 238
Merit: 100


View Profile
June 26, 2016, 01:57:56 AM
 #4

The bug was not displayed on my side. What browser you are using? I'm using chrome.
Accountbr
Member
**
Offline Offline

Activity: 70
Merit: 10


View Profile
June 26, 2016, 02:36:32 AM
 #5

I've contacted theymos about it.

Hey, I forgot something. Do I send you or theymos my bitcoin wallet address for my 35 BTC finders fee?  Tongue Tongue Tongue
You can't get a finders fee if you posted in public.

YuTü.Ço.in: Çommoditizing YouTube Çontent Çreator$' Brand$
ndnh
Legendary
*
Offline Offline

Activity: 1302
Merit: 1005


New Decentralized Nuclear Hobbit


View Profile
June 26, 2016, 03:25:46 AM
 #6

I remember posting about a very similar bug..

Let me check.

Edit.
https://bitcointalk.org/index.php?topic=1092872.0

Edit2.
It is the same thing. Omitting the opening center tag is the cause. theymos had fixed it with an error message, may be a little more to fix now.
https://bitcointalk.org/index.php?topic=1092872.msg11656030#msg11656030
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
June 26, 2016, 04:02:51 AM
 #7

I think that this is no security risk whatsoever, but just to be safe I made the bbcode parser return an error in this case.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Quickseller
Copper Member
Legendary
*
Offline Offline

Activity: 2870
Merit: 2298


View Profile
June 26, 2016, 04:12:20 AM
 #8

Do you think this might have something to do with the issue with tables that Dogie was having earlier today? (Maybe both issues have the same root cause).
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
June 26, 2016, 04:51:40 AM
 #9

Do you think this might have something to do with the issue with tables that Dogie was having earlier today? (Maybe both issues have the same root cause).

That seems very unlikely.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
June 26, 2016, 06:19:48 AM
Last edit: June 26, 2016, 06:30:18 AM by Gleb Gamow
 #10

The bug was not displayed on my side. What browser you are using? I'm using chrome.

I first noticed it in Chrome, but the screenshot was of it via IE, thinking at first that it may have been a browser glitch.

I see that theymos resolved the issue, but I'm gonna see if I can recreate it, so if BCT goes down in the next few minutes, blame Vod.  Tongue Tongue Tongue
ndnh
Legendary
*
Offline Offline

Activity: 1302
Merit: 1005


New Decentralized Nuclear Hobbit


View Profile
June 26, 2016, 07:29:34 AM
Last edit: June 26, 2016, 07:43:22 AM by ndnhc
 #11

I think that this is no security risk whatsoever, but just to be safe I made the bbcode parser return an error in this case.


INVALID BBCODE: unclosed tags sounds a little misleading since it happens when the center tag is closed without opening. Grin
INVALID BBCODE: bad table usage better


Is it possible that there can be more cases like this since this is the second time this thing comes up? I will also try to reproduce it, just for the fun.
ndnh
Legendary
*
Offline Offline

Activity: 1302
Merit: 1005


New Decentralized Nuclear Hobbit


View Profile
June 26, 2016, 07:48:56 AM
 #12

Occurs when a closing tag of an unopened tag appears inside a table.

1. INVALID BBCODE: bad table usage (The table tag can be closed. Has nil effect)
Code:
[table][tr][td][/b]
Code:
[table][tr][td][/i]
Code:
[table][tr][td][/u]
Code:
[table][tr][td][/b]
Code:
[table][tr][td][/s]
Code:
[table][tr][td][/sub]
Code:
[table][tr][td][/sup]
Code:
[table][tr][td][/color]
size, font, glow, image, url..... and everything else.


2. INVALID BBCODE: unclosed tags
Code:
[table][tr][td][/center]
Code:
[table][tr][td][/left]
Code:
[table][tr][td][/right]
Code:
[table][tr][td][/quote]
Code:
[table][tr][td][/list]
theymos
Administrator
Legendary
*
Offline Offline

Activity: 5166
Merit: 12865


View Profile
June 26, 2016, 02:21:47 PM
 #13

INVALID BBCODE: unclosed tags sounds a little misleading since it happens when the center tag is closed without opening. Grin
INVALID BBCODE: bad table usage better

Is it possible that there can be more cases like this since this is the second time this thing comes up? I will also try to reproduce it, just for the fun.

OK, I changed both errors to "close of unopened tag in table".

There are a variety of ways to produce invalid HTML, but usually it's not a huge problem because the effects are confined to within your own post. It's possible that there are additional undiscovered ways to do especially disruptive things. In this case, the old code path was for inline tags and the new code path which I missed last time was for block tags. (They're in very different places in the code, and not obviously related.) I don't think that anyone really understands the SMF bbcode parser: it looks like someone quickly coded up some mainly regex-based parser that sort of worked, and then people have been constantly tweaking it to fix its bugs for 10+ years. It's terrible. I've long been thinking that I should write a proper parser in C using the traditional lex+yacc tools.

1NXYoJ5xU91Jp83XfVMHwwTUyZFK64BoAD
ndnh
Legendary
*
Offline Offline

Activity: 1302
Merit: 1005


New Decentralized Nuclear Hobbit


View Profile
June 28, 2016, 01:42:52 PM
 #14

INVALID BBCODE: unclosed tags sounds a little misleading since it happens when the center tag is closed without opening. Grin
INVALID BBCODE: bad table usage better

Is it possible that there can be more cases like this since this is the second time this thing comes up? I will also try to reproduce it, just for the fun.

OK, I changed both errors to "close of unopened tag in table".

There are a variety of ways to produce invalid HTML, but usually it's not a huge problem because the effects are confined to within your own post. It's possible that there are additional undiscovered ways to do especially disruptive things. In this case, the old code path was for inline tags and the new code path which I missed last time was for block tags. (They're in very different places in the code, and not obviously related.) I don't think that anyone really understands the SMF bbcode parser: it looks like someone quickly coded up some mainly regex-based parser that sort of worked, and then people have been constantly tweaking it to fix its bugs for 10+ years. It's terrible. I've long been thinking that I should write a proper parser in C using the traditional lex+yacc tools.

Cool!

I am really good at messing up bbcode and those two are the only issues have had yet (the narrow first column and (one of) the closing tag in table thingy here). I think nothing disruptive can be done with bbcode. We should be safe Grin


Quote
I don't think that anyone really understands the SMF bbcode parser

Totally agree Grin
Spoetnik
Legendary
*
Offline Offline

Activity: 1540
Merit: 1011


FUD Philanthropist™


View Profile
June 30, 2016, 03:35:23 AM
 #15

The bug was not displayed on my side. What browser you are using? I'm using chrome.

I first noticed it in Chrome, but the screenshot was of it via IE, thinking at first that it may have been a browser glitch.

I see that theymos resolved the issue, but I'm gonna see if I can recreate it, so if BCT goes down in the next few minutes, blame Vod. Tongue Tongue Tongue

..we do Wink

And wow look at you Bruno you just a regular ole hacker / bug finder hard at work like a busy bee finding them bugs like a trooper looking for that "finders fee" ahahahhaha
35 BTC ?
HOLY COW MAN !

..you reported it so it's all good Wink

FUD first & ask questions later™
Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
July 01, 2016, 01:27:42 AM
 #16

The bug was not displayed on my side. What browser you are using? I'm using chrome.

I first noticed it in Chrome, but the screenshot was of it via IE, thinking at first that it may have been a browser glitch.

I see that theymos resolved the issue, but I'm gonna see if I can recreate it, so if BCT goes down in the next few minutes, blame Vod. Tongue Tongue Tongue

..we do Wink

And wow look at you Bruno you just a regular ole hacker / bug finder hard at work like a busy bee finding them bugs like a trooper looking for that "finders fee" ahahahhaha
35 BTC ?
HOLY COW MAN !

..you reported it so it's all good Wink

I meant 35 XRA. Rumor has that that shit's goin' to da moon.
Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
July 01, 2016, 01:32:57 AM
 #17

The bug was not displayed on my side. What browser you are using? I'm using chrome.

I first noticed it in Chrome, but the screenshot was of it via IE, thinking at first that it may have been a browser glitch.

I see that theymos resolved the issue, but I'm gonna see if I can recreate it, so if BCT goes down in the next few minutes, blame Vod. Tongue Tongue Tongue

..we do Wink

And wow look at you Bruno you just a regular ole hacker / bug finder hard at work like a busy bee finding them bugs like a trooper looking for that "finders fee" ahahahhaha
35 BTC ?
HOLY COW MAN !

..you reported it so it's all good Wink

I meant 35 XRA. Rumor has that that shit's goin' to da moon.
Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
October 27, 2016, 11:44:59 PM
 #18

Since I'm now a certified coder  Roll Eyes, I thought I'd share with my fellow coder buddies a trick I came up after hours of research (or via happenstance) on how to quickly discover where the missing bracket is in a big table after doing several edits causing the INVALID BBCODE error to rear its ugly head.

Simply remove the third to last bracket like below, preview the post by scrolling up, and you'll see exactly where the error lies.

Code:
[/tr][/table]

[/tr[/table]

Tomorrow's lesson will be on how to ingeniously depict three consecutive question marks without generating the Huh smiley --> Huh. <fuck me in the ass. I meant that to be a joke, but pondered how to do such, coming up with a solution that I believe might work. gonna try it now>

?&#63;?

<okay, so that didn't work  Cry, but I'm still a fuckin' genius.>

FAKE EDIT (prior to posting): Okay, I have another idea on how to do it. Watch this, losers!

?.?.?

Foxpup
Legendary
*
Offline Offline

Activity: 4340
Merit: 3041


Vile Vixen and Miss Bitcointalk 2021-2023


View Profile
October 28, 2016, 02:58:16 AM
 #19

Why would you resort to such an ugly hack??? My way's better.

Will pretend to do unspeakable things (while actually eating a taco) for bitcoins: 1K6d1EviQKX3SVKjPYmJGyWBb1avbmCFM4
I am not on the scammers' paradise known as Telegram! Do not believe anyone claiming to be me off-forum without a signed message from the above address! Accept no excuses and make no exceptions!
Gleb Gamow (OP)
In memoriam
VIP
Legendary
*
Offline Offline

Activity: 1428
Merit: 1145



View Profile
October 28, 2016, 03:14:53 AM
 #20

Why would you resort to such an ugly hack??? My way's better.

Dude, I've yet to get to the nobbc chapter, thus my other hack ...

???
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!