You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When user that didn't seen ticket pastes its URL into browser address bar and adds https://added.by.mistake/ to this URL by mistake, ticket page is opened correctly but MarkAsSeen POST is sent with
[Mon Jan 27 15:25:01 2025] -e: DBD::mysql::db do failed: Data truncated for column 'ticket_id' at row 1 at /opt/otrs/Kernel/System/DB.pm line 497.
ERROR: OTRS-CGI-1 Perl: 5.32.1 OS: linux Time: Mon Jan 27 14:25:01 2025
Message: Data truncated for column 'ticket_id' at row 1, SQL: '
INSERT INTO ticket_flag
(ticket_id, ticket_key, ticket_value, create_time, create_by)
VALUES (?, ?, ?, '2025-01-27 14:25:01', ?)'
RemoteAddress: [...]
RequestURI: /otrs/index.pl?Action=AgentTicketZoom;TicketID=3%20https://added.by.mistake/
Traceback (1773):
Module: Kernel::System::Ticket::TicketFlagSet Line: 7087
Module: Kernel::Modules::AgentTicketZoom::MaskAgentZoom Line: 2004
Module: Kernel::Modules::AgentTicketZoom::Run Line: 839
Module: Kernel::System::Web::InterfaceAgent::Run Line: 1144
Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 39
Module: (eval) (v1.99) Line: 207
Module: ModPerl::RegistryCooker::run (v1.99) Line: 207
Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 173
Module: ModPerl::Registry::handler (v1.99) Line: 32
Environment
Server OS: Debian
Browser: any
Znuny version: 6.5.11
Expected behavior
No errors in server error.log (MarkAsSeen input should be validated).
POST with valid TicketID should be called from WebUI in such scenario.
Actual behavior
MarkAsSeen POST from correctly loaded page contains invalid TicketID value.
MarkAsSeen is not validated on sever and throws SQL error.
How to reproduce
Steps to reproduce the behavior:
Login as user A, create ticket send its URL (i.e. https://my.znuny.sever/otrs/index.pl?Action=AgentTicketZoom;TicketID=3) to user B.
Paste URL https://my.znuny.sever/otrs/index.pl?Action=AgentTicketZoom;TicketID=3 https://added.by.mistake/ in users B browser (to trigger MarkAsSeen POST from page with suffixed URL).
See web server error.log.
The text was updated successfully, but these errors were encountered:
When user that didn't seen ticket pastes its URL into browser address bar and adds
https://added.by.mistake/
to this URL by mistake, ticket page is opened correctly but MarkAsSeen POST is sent withand throws error like below to error.log
Environment
Expected behavior
MarkAsSeen
input should be validated).TicketID
should be called from WebUI in such scenario.Actual behavior
MarkAsSeen
POST from correctly loaded page contains invalidTicketID
value.MarkAsSeen
is not validated on sever and throws SQL error.How to reproduce
Steps to reproduce the behavior:
https://my.znuny.sever/otrs/index.pl?Action=AgentTicketZoom;TicketID=3
) to user B.https://my.znuny.sever/otrs/index.pl?Action=AgentTicketZoom;TicketID=3 https://added.by.mistake/
in users B browser (to triggerMarkAsSeen
POST from page with suffixed URL).The text was updated successfully, but these errors were encountered: