Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 97,173
» Latest member: b52bbz
» Forum threads: 2,426
» Forum posts: 11,370

Full Statistics

Online Users
There are currently 1052 online users.
» 2 Member(s) | 1045 Guest(s)
Applebot, Bing, Facebook, Google, Yandex, danhbaicyou, Nohu90kim

Latest Threads
WebApplication.IP change ...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-09-2026, 03:02 AM
» Replies: 0
» Views: 80
Hook/callback to handle t...
Forum: IntraWeb General Discussion
Last Post: Lenfors
09-08-2026, 09:03 AM
» Replies: 0
» Views: 84
Reproducible IIS crash in...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
09-08-2026, 01:48 AM
» Replies: 0
» Views: 95
The packages IW16.xx inc...
Forum: IntraWeb General Discussion
Last Post: hsbelli
09-03-2026, 11:46 AM
» Replies: 2
» Views: 362
Redirection issues with F...
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 10:03 AM
» Replies: 0
» Views: 185
Source Code
Forum: IntraWeb General Discussion
Last Post: magosk
08-31-2026, 08:11 AM
» Replies: 3
» Views: 536
TContenthandler requires ...
Forum: IntraWeb General Discussion
Last Post: valmeras
08-30-2026, 02:35 AM
» Replies: 0
» Views: 174
TIWjQDBGrid erratic behav...
Forum: IntraWeb General Discussion
Last Post: alex.trejo@tttnet.com.mx
08-20-2026, 05:12 PM
» Replies: 8
» Views: 2,104
Change Language DataTable
Forum: IntraWeb General Discussion
Last Post: Rigoberto Mercedes
08-19-2026, 03:21 PM
» Replies: 1
» Views: 310
How to terminate HTTP Thr...
Forum: Indy
Last Post: rlebeau
08-14-2026, 08:01 AM
» Replies: 5
» Views: 901

 
  detect the file type of CSV/TXT file
Posted by: pgnair - 09-19-2024, 09:02 AM - Forum: IntraWeb General Discussion - Replies (2)

how to detect the file type or contented type of a csv file upload using fileuploader?

Print this item

  set custom font in pixel
Posted by: drewdavis - 09-10-2024, 05:23 AM - Forum: IntraWeb General Discussion - No Replies

How do I set a custom font in pixel? Does anyone have a link to a detailed tutorial on it?

Print this item

  XSS Vulnerability IW 15.2.23
Posted by: davidmcevoy@outlook.com - 09-05-2024, 10:50 AM - Forum: IntraWeb General Discussion - Replies (2)

Hello.  

I have recently had a security scan done on a site I am working on and it is reported that JavaScript can be injected into the page (XSS) as shown below.  I am using IW 15.2.23 at the moment and wonder if there is something I can do to prevent it.

URLhttps://dummydomain.com/

Method: POST

Parameter: IW_SessionID_

Attack: '"<scrIpt>alert(1);</scRipt>

Evidence: '"<scrIpt>alert(1);</scRipt>



URL: https://dummydomain.com/$/callback?callback=IWEDIT1.DoOnAsyncChange

Method: POST

Parameter: IW_SessionID_

Attack: '"<scrIpt>alert(1);</scRipt>
Evidence: '"<scrIpt>alert(1);</scRipt>


Not entirely sure how to test for this on the local SA application so that I can check it has been fixed.

Any advise would be appreciated. XSS is not something I have much experience with.

David.

Print this item

  IW 15.6.5 is out
Posted by: Alexandre Machado - 09-05-2024, 09:40 AM - Forum: IntraWeb General Discussion - Replies (1)

Quick hot fix for an issue found in the previous version.

https://www.atozed.com/2024/09/intraweb-15-6-5/

Cheers

Print this item

  IntraWeb 15.6.4 is out!
Posted by: Alexandre Machado - 09-04-2024, 09:06 AM - Forum: IntraWeb General Discussion - Replies (4)

Hi guys,

there is a new IW version available for download:

https://www.atozed.com/2024/09/intraweb-15-6-4/

Enjoy!  Big Grin

Next release will bring Lazarus support. Stay tunned!

Print this item

Question Different procedures in OnClick event
Posted by: David1 - 09-03-2024, 01:17 PM - Forum: IntraWeb General Discussion - No Replies

Hello,

I am developing wint Delphi 12.1 Patch 1 and IW 15.6.3.

In an OnClick event of a button I need to execute two different procedures.
The first one save some data to a DB (quick, no problem), the second one call a web service which introduce some delay in response and update of the page.

The procedure is invoked inside a runtime created data module.
Is it possible to use TTask from PPL to execute the web service call asynchronously?

It will be ok to use PPL inside the thread where the data module is executed (considering the multi thread architecture of IW)?

Thank you,
Davide

Print this item

  SSL TcpServer, TcpClient
Posted by: 3ddark - 08-28-2024, 01:50 PM - Forum: Indy - Replies (4)

Exclamation I want to make a TCP Socket application that is secured with simple self signed SSL certificates. Exclamation

In fact, IndyTCPServer and IndyTcpClient allow me to do most of the operations very easily.
However, when it comes to SSL operations, I fail.

I really don't understand why I can't do this. There are many examples, blogs and videos. But it shouldn't be this hard.
I have easily done a similar SSL operation for Mosquitto Broker on Linux. Angry

I am writing the operations I have done step by step. Please tell me where I am missing or making a mistake.

  1. I downloaded the openssl-1.0.2u-i386-win32.zip package from the address below.
    https://github.com/IndySockets/OpenSSL-Binaries
  2. I created my self-signed certificates with the following steps.
  3. I have made SSL settings. As seen in the screenshot, I am establishing a connection with the Server.
        Then I get an error in the Connect process with the Client. When I look at it with Debug, the first error that appears is,    "Error accepting connection with SSL."then the error I see on the screen is    "Connection reset by peer."
Code:
## SERVER ##
openssl genpkey -algorithm RSA -out server.key -aes256
  Enter PEM pass phrase: 123456
openssl req -new -key server.key -out server.csr
  Validate pass: 123456
    Country: TR
    State: Blank
    Locality: Blank
    Organization Name: Acme Ltd
    Organization Unit: IT
    Common Name: 127.0.0.1
    Email: Blank
    Extra Attributes: Blank
openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
  Validate pass: 123456


## CLIENT ##
openssl genpkey -algorithm RSA -out client.key -aes256
  Enter PEM pass phrase: 123456
openssl req -new -key client.key -out client.csr
  Validate pass: 123456
openssl req -new -key server.key -out server.csr
  Validate pass: 123456
    Country: TR
    State: Blank
    Locality: Blank
    Organization Name: Acme Ltd
    Organization Unit: IT
    Common Name: 127.0.0.1
    Email: Blank
    Extra Attributes: Blank
openssl x509 -req -days 365 -in client.csr -signkey client.key -out client.crt
  Validate pass: 123456

I have attached the project files. If you could please tell me what the problem is, I would be very grateful.


Code:
procedure TfrmMain.IdTCPServer1Connect(AContext: TIdContext);
begin
  if AContext.Connection.IOHandler is TIdSSLIOHandlerSocketBase then
    TIdSSLIOHandlerSocketBase(AContext.Connection.IOHandler).PassThrough := False;
  mmoSrv.Lines.Add('Connected');
end;

procedure TfrmMain.IdServerIOHandlerSSLOpenSSL1GetPassword(var Password: string);
begin
  Password := '123456';
end;

procedure TfrmMain.IdSSLIOHandlerSocketOpenSSL1GetPassword(var Password: string);
begin
  Password := '123456';
end;

I used the files in step 1 to create the certificate and as dll.



Attached Files
.zip   clienttest.zip (Size: 58.99 KB / Downloads: 4)
Print this item

  post xml data with XMLHttpRequest
Posted by: JuergenS - 08-23-2024, 03:26 AM - Forum: IntraWeb General Discussion - Replies (9)

Hi ATOZED,

Similar to the example "PostDataDemo", I want to query XML data via a corresponding content handler, but my content handler cannot find the query data.

C++ Builder 12 Patch 1
Edition: IntraWeb Ultimate Edition
IntraWeb Version: 15.6.3
32-bit Server on 64-bit Windows
HTTP Server is active on port: 80
HTTPS Server is active on port: 543 (OpenSSL v1.1.1)

In the server controller, the content handler is configured as follows:

this->SecurityOptions->HttpMethods << hmGet << hmPost;
this->SecurityOptions->ForceAjaxPost = true;

TIWMimeTypes::RegisterType(L".xml", L"application/xml; charset=UTF-8", false);
THandlers::Add(L"", L"Query.xml", new TIWH_Xml());

The query is made interactively via an XMLHttpRequest object (see appendix).
The HTML document is inserted into a frame of the MainForm.

The content handler is called correctly but the query data does not arrive:

aRequest->HasContent = true
aRequest->Files->Count = 0 !!!

The test tool specified in "How to simulate a request using Firefox Poster addon.png" (2017)
I could unfortunately no longer find it at Mozilla.

Is there something wrong with my example ?
Does anything else need to be configured ?

Regards
Juergen



Attached Files
.html   Query.html (Size: 691 bytes / Downloads: 1)
Print this item

  WebApplication.CallBackResponse.AddJavaScriptToExecute call causes Access Violation
Posted by: oliver - 08-22-2024, 11:15 AM - Forum: IntraWeb General Discussion - No Replies

I get an exception on WebApplication.CallBackResponse.AddJavaScriptToExecute (Exception class name = EAccessViolation) when two users try to access the same page at the same moment. 
I have no problem as long as there is just one user displaying the page.

What do I miss ?

Thank you for your support.

Print this item

  CrossTalk 2.0.35 is out
Posted by: Alexandre Machado - 08-16-2024, 05:40 AM - Forum: CrossTalk General Discussion - No Replies

Hi guys,

there is a new CrossTalk version available for download.

CrossTalk supports Delphi 2009 through Delphi 12.1

https://www.atozed.com/2024/08/crosstalk-2-0-35/

Enjoy!  Big Grin

Print this item