Bug 480190 - Dolphin QML HTML injection
Summary: Dolphin QML HTML injection
Status: RESOLVED WORKSFORME
Alias: None
Product: dolphin
Classification: Applications
Component: view-engine: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-22 21:36 UTC by Benjamin Flesch
Modified: 2024-03-08 03:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Example screen shot (29.78 KB, image/png)
2024-02-07 08:51 UTC, Jonathan Marten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Benjamin Flesch 2024-01-22 21:36:49 UTC
SUMMARY
***
HTML can be injected into Dolphin UI from the command line. 
***


STEPS TO REPRODUCE
1. Open terminal
2. type: dolphin "<h1>HTML Injection</h1>"
3. press enter, dolphin will inject the HTML

OBSERVED RESULT
HTML injected

EXPECTED RESULT
no html injected

SOFTWARE/OS VERSIONS
dolphin 23.08.4

ADDITIONAL INFORMATION
Comment 1 Harald Sitter 2024-01-23 09:54:48 UTC
This is a problem because?
Comment 2 Bug Janitor Service 2024-02-07 03:45:41 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Jonathan Marten 2024-02-07 08:51:24 UTC
Created attachment 165640 [details]
Example screen shot

Maybe what the reporter means is that it is possible to inject HTML into the error message displayed when a file or folder does not exist, as shown in the screen shot if Dolphin is started with the command line

   dolphin "<img src='file:/tmp/kde.png'/><br><H1>HTML Injection</h1>" 

However, there is no obvious exploit either remotely or by viewing an exploit file name or file contents, so it is not likely to be a securiry risk.
Comment 4 Benjamin Flesch 2024-02-07 13:30:12 UTC
@sitter: It is a problem because if you close dolphin with alt+f4 the QML injection stays and visually pollutes your dolphin experience.

Not to speak from the nice crashes you can get with `dolphin --new-window $(perl -E "print('A' x 100000)")`

IMO handling of untrusted user input should be improved before you end up with a proper security situation.
Comment 5 Harald Sitter 2024-02-07 13:34:51 UTC
(In reply to Benjamin Flesch from comment #4)
> @sitter: It is a problem because if you close dolphin with alt+f4 the QML
> injection stays and visually pollutes your dolphin experience.

Well, you shot yourself in the foot, that is going to hurt any amount of time.
 
> Not to speak from the nice crashes you can get with `dolphin --new-window
> $(perl -E "print('A' x 100000)")`

If the user wants to shoot themselves in the foot that's their right.

> IMO handling of untrusted user input should be improved before you end up
> with a proper security situation.

It is trusted by virtue of coming from the user session.
Comment 6 Bug Janitor Service 2024-02-22 03:46:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Bug Janitor Service 2024-03-08 03:47:04 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!