Koha-clms/C4/SIP
Magnus Enger 8e2c03cc20
Bug 37816: Stop SIP2 from logging passwords
Koha's SIP2 server does a lot of logging, including all incoming
requests, in full. This means that passwords are logged, both for
the user the SIP2 client uses for logging into Koha, as well as
for the end users who provide a password to e.g. check something
out. This patch replaces passwords with three asterisks in
log strings, before they are written to the log.

To test, in ktd:
- Run the new tests:
  $ prove t/db_dependent/SIP/Sip.t
- Tail the SIP2 logs:
  $ sudo tail -f /var/log/koha/kohadev/sip*.log
- Telnet into the SIP2 server:
  $ telnet localhost 6001
- Try logging in by pasting this into the telnet session:
  "9300CNterm1|COmypassword|CPCPL|"
- Verify that "mypassword" is replaced by "***" in the logs
- Try different values for the password, including the correct password
  which is "term1" in ktd
- Try other SIP2 messages that include password fields (AC, AD, CO)

Update 2024-12-03: Fix issues pointed out by QA.

Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
2025-02-18 19:17:19 +01:00
..
ILS Bug 23426: (follow-up) This patch reintroduces the former implementation of fine items 2024-11-13 17:00:47 +01:00
Sip Bug 23426: (follow-up) This patch reintroduces the former implementation of fine items 2024-11-13 17:00:47 +01:00
ILS.pm Bug 38344: Fix typo - space before exclamation mark in "Thank you !" 2024-11-19 16:35:16 +01:00
ILS.pod
…
Logger.pm
…
Makefile
…
README
…
SIPServer.pm Bug 37087: Add TCP keepalive support to SIP server 2024-08-20 15:32:47 +02:00
Sip.pm Bug 37816: Stop SIP2 from logging passwords 2025-02-18 19:17:19 +01:00
Trapper.pm Bug 36948: (follow-up) Remove log_file param, adjust caller_depth 2024-06-11 08:09:55 +01:00

README

README for Open NSIP 3M-SIP Server

DEPENDENCIES

SIPServer is written entirely in Perl, but it require these CPAN
perl modules to run:

     Net::Server - The SIP server is a Net::Server::Prefork server
     XML::LibXML
     XML::Parser
     XML::Simple - for parsing the config file
     UNIVERSAL::require - for loading the correct ILS interface module
     Clone - for running the test cases

LOGGING

SIPServer uses Koha::Logger for status and debugging messages.