Commit Graph

83 Commits (816de7dfc2626d32615deb8553f67b08abb985e7)

Author SHA1 Message Date
Golbark 3a0bedb104 chg: [internal] Using Allowedlist instead of Whitelist 2020-09-01 16:28:20 +02:00
Golbark 3fb47d1cce chg: [internal] Using blocklist instead of blacklist 2020-09-01 16:27:36 +02:00
Jakub Onderka bc845719c4 fix: [audit] Show all attribute changes in event history 2020-07-02 15:47:16 +02:00
mokaddem f038fca803
chg: [logs:search] Added support of JSON return format 2020-04-14 10:48:58 +02:00
iglocska 23f1c9f51d
fix: [logs] pagination settings are lost when flipping pages after a search 2020-03-09 10:35:28 +01:00
Andras Iklody 0acaf546e7
fix: Make feeds a searchable scope in the logs, fixes #5501 2020-01-13 18:55:40 +01:00
mokaddem 813d222bf4
chg: [decaying] Added log entry if formula cannot be loaded 2019-09-12 14:10:17 +02:00
Jakub Onderka 4ef9595023 fix: Replace not exists MethodNotFoundException with NotFoundException 2019-08-14 21:27:05 +02:00
iglocska 36b43f1306
fix: [security] Org admins could reset credentials for site admins
- org admins have the inherent ability to reset passwords for all of their org's users
- this however could be abused if for some reason the host org of an instance would create org admins
  - the org admin could set a password manually for the site admin or simply use the API key of the site admin to impersonate them
- the potential for abuse is very circumstancial as it requires the host org to create lower privilege org admins instead of the usual site admins
- only org admins of the same organisation as the site admin could abuse this

- as reported by Raymond Schippers
2019-06-11 11:05:34 +02:00
iglocska 62f026ff8c
fix: [Logs] Event history missing proposal entries and deletions
Signed-off-by: iglocska <andras.iklody@gmail.com>
2019-05-13 15:57:00 +02:00
iglocska 756ac859d1 new: [API] Log search API now allows for last style time ranges using the created field 2019-02-06 17:47:51 +01:00
iglocska 2d0259ce13 fix: [CS] coding standards script re-run 2018-11-23 14:11:33 +01:00
iglocska 09ec9aecd6 new: [API] Added the log index/search to the API
- described in the templates / rest client page
2018-10-11 20:20:27 +02:00
iglocska a81894f14c chg: [CS] Changed to PSR-2
- to make contributions easier, adopted PSR-2
- used php-cs-fixer to rework the style
- *sniff sniff* Goodbye tab indentation
2018-07-19 11:48:22 +02:00
iglocska 68b8266584 new: New flash message system, fixes #3252
- 3 types of flash messages (success, error, warning)
- uses bootstrap's own classes/structure
2018-05-16 19:32:38 +02:00
iglocska 5f583df737 fix: log seach should allow form resubmissions 2018-04-18 15:20:53 +02:00
iglocska ee018011a8 new: Added a small diagnostic tool to debug the impact of a bug fixed in 2.4.89 2018-03-26 12:10:42 +02:00
iglocska 24ef3a311a fix: Add misp objects to log search filter 2018-03-04 15:01:13 +01:00
iglocska 5a4e8ef204 chg: Rework of the event history view, no more crazy slow parsing of all strings in the log table 2018-01-26 10:11:23 +01:00
iglocska 45d1ca3451 fix: Fix to invalid role check preventing users from seeing the org index, even if they should have access 2018-01-15 09:50:11 +01:00
iglocska 297802c2cb fix: Changed checks from isSiteAdmin to isAclSharingGroup for the org index anonymisation 2018-01-13 17:00:44 +01:00
iglocska 7772b9c43e new: Disable the viewing of a full organisation list by normal users
- Only site admins and sharing group editors can see organisation lists
  - this includes the org index and various statistics
- Keep in mind: Sharing group editors CAN see the full organisation list - otherwise they wouldn't be able to create sharing groups.
- Also, users CAN enumerate organisations that have created ANY data on the instance by looking at the given data
  - this includes events, proposals, discussion entries, etc
2018-01-13 16:55:01 +01:00
iglocska 31e1a19f13 fix: Don't cull the list of possible models based on existing data for the search logs view
- slow and useless
2017-12-05 11:37:51 +01:00
iglocska 2f824e3833 fix: History is now available via the API, fixes #2111 2017-04-05 13:29:51 +02:00
iglocska 48843b60ec fix: Fix and cleanup script for a specific bug
- rare occurance, but some MISP servers enter an upgrade loop causing massive amounts of log entries
- this patch cleans up the bug preventing further upgrade loops as well as offers a script to clean up the fallout
2017-01-30 09:16:43 +01:00
iglocska cc7242f0c9 new: Add e-mail in event history view, fixes #1389
- Only visible to site admins and org members
2016-08-27 23:53:41 +02:00
iglocska 822b0bf8fa chg: Cleanup of the controllers and models
- removed incorrect, useless boiler plate comments
- kept useful comments intact
- added some missing line breaks to make the codebase a bit more uniform
- removed some obviously obsolete TODO comments
2016-08-25 11:38:37 +02:00
Iglocska a7dac159ef fix: Follow up to the previous patch, same thing for log searches 2016-06-27 17:08:19 +02:00
Iglocska b79f0abfe8 fix: Fixed an issue with org admins having too much access via the logs 2016-06-27 17:06:10 +02:00
Andreas Ziegler 985451642e add space after keywords if/for/foreach/while/switch/catch 2016-06-04 15:45:39 +02:00
Andreas Ziegler 898ea1d97c remove whitespace (space/tab) from empty lines 2016-06-04 01:08:16 +02:00
Iglocska 7db5caebd1 fix: Fixed an issue with the attribute search timing out 2016-05-23 11:16:13 +02:00
Andreas Ziegler dc0974a55b misc cleanup 2016-05-21 05:10:49 +02:00
I-am-Sherlocked 3807b6b101 Resolving the sql_mode=only_full_group_by error in Search Log
Similar to pull request #1121 and issue #749, the ID needs to be in group_by to solve this error in /admin/logs/search

>Error: [PDOException] SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'Log.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
2016-05-17 17:56:50 -07:00
Iglocska 3edf8157ca Quick filters for the logs 2016-05-15 19:50:12 +02:00
Iglocska 24c7fa61fe Merge branch 'permissionfix' into 2.4 2016-04-18 17:41:59 +02:00
Iglocska bc2a85ffaf Fixed an issue with the log search where the search terms would be discarded after pagination 2016-02-25 13:52:49 +01:00
Iglocska 48f4facf2e Pagination incorrectly sorts log entries after flipping the page, fixes #971 2016-02-25 13:29:20 +01:00
William Robinet 4fea371c4b Fix permissions 2016-02-11 17:03:51 +01:00
Iglocska 9c8719bf58 Display and Search for model ID in the audit logs, fixes #889 2016-01-29 15:48:23 +01:00
Iglocska aff8bee4fb Further fix to the previous commit affecting the log search
- only show the subset of valid model options for the log search that would yield results based on the current dataset
2016-01-13 08:40:18 +01:00
Iglocska 4b20cf8124 Fixed an issue with searching the logs by model where incorrect model entries would also show up as options 2016-01-13 08:36:14 +01:00
Iglocska 953a83a9e0 Several changes to the logs
- index now shows the model that the log entry concerns
- added model to the search parameters
  - this allows for searches such as new users added (Model:User - action:add)

- fixed a bug with the log search where going back to the first page of results would return you to the search form
2016-01-12 19:49:01 +01:00
Iglocska 69d973c755 Event history now takes into account sharing groups 2015-12-13 21:28:10 +01:00
iglocska 324418dcf9 Merge branch 'master' into 2.4-beta
Merge and upgrade of several new features

Conflicts:
	VERSION.json
	app/Controller/ShadowAttributesController.php
	app/Controller/TagsController.php
	app/Model/AppModel.php
	app/Model/Event.php
	app/Plugin/SysLogLogable/Model/Behavior/SysLogLogableBehavior.php
2015-11-08 23:26:19 +01:00
iglocska 16e7974fc0 Improved logging, fixes #695
- Added logging of failed login attempts
- Added (optional) logging of successful authentications
  - admin setting that has to be enabled
  - will log all API calls (both HTTP method and target url)

- optional logging of user IP address for all logs
  - each log entry created while this setting is enabled will log the IP address of the client
  - disabling it also hides the IPs from the interface
  - added new IP field for the log search (only if enabled)
2015-11-08 22:35:46 +01:00
Iglocska 1e3db8a8ba Further work on the new version
- org checks fixed in a lot of places
- fixed the searches to work with the new organisations
2015-04-14 17:51:38 +02:00
Iglocska e0ef372392 Merge branch 'master' into feature/sg
Conflicts:
	app/Controller/EventsController.php
	app/Controller/UsersController.php
	app/Model/Event.php
2015-04-12 10:40:31 +02:00
iglocska 0e7b2448d2 Further work on the sharing groups
- correlations should work fine now
- users can only see events they should be allowed to see on the event index / event view / event history view
2015-04-10 15:23:53 +02:00
Iglocska 50a03e897d Search in logs fixed, fixes #434
- The log search incorrectly set the search terms for empty fields, meaning that any log entries that had unfilled columns, such as it is the case with admin_email would never return results
2015-03-14 08:29:19 +01:00