FORUM problem!! (not a PB bug but a forum BUG)

For everything that's not in any way related to PureBasic. General chat etc...
Jan Vooijs
Enthusiast
Enthusiast
Posts: 196
Joined: Tue Sep 30, 2003 4:32 pm
Location: The Netherlands

FORUM problem!! (not a PB bug but a forum BUG)

Post by Jan Vooijs »

I discovered that it is possible to mangle any code inserted into a forum post.

By using a precise string of characters the previous source code is 'hidden' from site (but it is still there) this opens a possibility to put "special" code here to execute when tried (to run) at home on your end (private).

Very big problem in my view. I do not dear to proof it but it could be done.....

UPDATE:
No the code is really mangeled and no possiblilty to hide code. But any source code displayed is wrong for 4 to 6 lines PRIOR to the "special' string.
/UPDATE

Jan V.
Life goes to Fast, Enjoy!!

PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!

AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
Fred
Administrator
Administrator
Posts: 18351
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

It's not a pb problem. Forward that to the phpbb team...
Jan Vooijs
Enthusiast
Enthusiast
Posts: 196
Joined: Tue Sep 30, 2003 4:32 pm
Location: The Netherlands

Post by Jan Vooijs »

Sorry Fred (your quick),

I new it was NOT in PB but did not realise to put it here.

How do I forward this to the "phpbb team" (never done such thing).
(edit)
Found the link on the last line of OUR forum!! But where can I find which version of the forum we (ahem YOU) are using i thing those guys want to know that I would?!
(end edit)

By the way the problem is (after testing) an line starting with ";>>" so a semicolon and TWO ">" then 5 lines previous to the ;>> are gone??

Jan V.
Life goes to Fast, Enjoy!!

PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!

AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
User avatar
Joakim Christiansen
Addict
Addict
Posts: 2452
Joined: Wed Dec 22, 2004 4:12 pm
Location: Norway
Contact:

Post by Joakim Christiansen »

Just disable html in your posts and I think(know) it should work!
Last edited by Joakim Christiansen on Thu Jun 29, 2006 7:30 pm, edited 1 time in total.
I like logic, hence I dislike humans but love computers.
Jan Vooijs
Enthusiast
Enthusiast
Posts: 196
Joined: Tue Sep 30, 2003 4:32 pm
Location: The Netherlands

Post by Jan Vooijs »

Joakim Christiansen wrote:Just disable html in your posts and I think it should work!
Joakim,

It happens if you use the two CODE tags so we can beautify our code posted on the forum. And i think that has nothing to do with HTML, because i have STANDARD "Disable HTML in this post" set OFF all the time.


look at this:

Code: Select all

with a problem:
Procedure ClipboardUpdateIsOn()
Shared update_on, clipboard_name$, clipboard_contents$, status_bar_text_temp$, current_number

  clipboard_name$ = GetGadgetText(#CATEGORY_LIST)
  clipboard_contents$ = clipboard_name$+Str(current_number)
  SetClipboardText(clipboard_contents$)
  status_bar_text_temp$ = "Clipboard:  "+clipboard_contents$
  If status_bar_text_temp$ <status_bar_text>> WindowEvent()
		Delay(1)
	EndIf
EndProcedure

now look at this:
look at this:

Code: Select all

NOT with a problem:
Procedure ClipboardUpdateIsOn()
Shared update_on, clipboard_name$, clipboard_contents$, status_bar_text_temp$, current_number

  clipboard_name$ = GetGadgetText(#CATEGORY_LIST)
  clipboard_contents$ = clipboard_name$+Str(current_number)
  SetClipboardText(clipboard_contents$)
  status_bar_text_temp$ = "Clipboard:  "+clipboard_contents$
  If status_bar_text_temp$ <> status_bar_text$
    StatusBarText(#StatusBar,0,status_bar_text$)
  EndIf
 
  If update_on = 1
    If GetAsyncKeyState_($11)
      If GetAsyncKeyState_($56)
        ; CallDebugger
        current_number = current_number + 1
        Debug "innerloop : " + Str( current_number)
        clipboard_contents$ = clipboard_name$+Str(current_number)
        SetClipboardText(clipboard_contents$)
        Delay(Val(GetGadgetText(#SENSITIVITY)))
      EndIf
    EndIf
    ; WindowEvent()
    Delay(1)
  EndIf
EndProcedure
The only difference is that WITH the problem i used TAB characters in front of every line AND using ";>>" to start a comment deletes the previous 16 lines (16?? That is odd??)

But thanks

Jan V.
Life goes to Fast, Enjoy!!

PB 4 is to good to be true, wake up man it is NOT a dream THIS is a reality!!!

AMD Athlon on 1.75G, 1Gb ram, 160Gb HD, NVidia FX5200, NEC ND-3500AG DVD+RW and CD+RW, in a Qbic EO3702A and Win XP Pro SP2 (registered)
Post Reply