kirby3-security-headers
                                
                                
                                
                                    kirby3-security-headers copied to clipboard
                            
                            
                            
                        Bump getkirby/cms from 3.6.5 to 3.6.6.2
Bumps getkirby/cms from 3.6.5 to 3.6.6.2.
Release notes
Sourced from getkirby/cms's releases.
3.6.6.2
🚨 Security release
User enumeration in the code-based login and password reset forms
Severity: medium (CVSS score 4.8)
Errors that occur during the processing of the code-based login and password reset were in some cases passed to the user. This includes errors of the code challenge itself (e.g. if the email could not be sent) and errors thrown inside the
user.login:failedhook.This vulnerability allowed user enumeration, which is a type of vulnerability that allows attackers to confirm which users are registered in a Kirby installation. This information can be abused for social engineering attacks against users of the site or to find out the organizational structure of the company.
This vulnerability only affects you if you are using the
codeorpassword-resetauth method with theauth.methodsoption. It can only be successfully exploited under server configuration conditions outside of the attacker's control.Thanks to Florian Merz (
@florianmrz) of hatchery.io for responsibly reporting the identified issue.User enumeration in the brute force protection
Severity: medium (CVSS score 6.5)
We used the opportunity to review other parts of Kirby's authentication handling and found another part that is affected by a similar user enumeration vulnerability caused by a response discrepancy in Kirby's brute force protection system.
This vulnerability affects all Kirby sites with user accounts (unless Kirby's API and Panel are disabled in the config). It can only be exploited for targeted attacks because the attack does not scale to brute force.
3.6.6.1
🚨 Security release
Cross-site scripting (XSS) from content entered in the tags and multiselect fields
Severity: high (CVSS score 7.1)
The tags and multiselect fields allow to select tags from an autocompleted list. The tags field also allows to enter new tags or edit existing tags. Kirby already handled escaping of the autocompleted tags, but unfortunately the Panel used HTML rendering for new or edited tags as well as for custom tags from the content file.
This allowed attackers with Panel access to store malicious HTML code in a tag. The browser of the victim who visited the modified page in the Panel will then have rendered this malicious HTML code.
It also allowed self-inflicted XSS attacks in the tags field (meaning that malicious code is executed in the browser of the user who entered it). This could be used in social engineering attacks where a victim is convinced by an attacker to enter malicious code into a tags field.
Visitors without Panel access could only use this attack vector if your site allows changing the content of a tags or multiselect field from a frontend form (for example user self-registration or the creation of pages from a contact or other frontend form). If you validate or sanitize the provided form data, you are already protected against such attacks by external visitors.
You are also not affected by these vulnerabilities if your site doesn't have untrustworthy users with Panel access or a way to modify field values from the frontend or if you don't use the tags or multiselect fields.
Note: The fixes for these vulnerabilities have the side effect that values in the tags and multiselect fields that come from dynamic options are displayed with double escaping (e.g. the
&character is displayed as&). We will fix the double escaping issues with a refactoring of the options fields (tags, multiselect, checkboxes, radio, select and toggles) in Kirby 3.8.3.6.6
🎉 Features
- New
 A::random()and$collection->random()methods to get one or multiple random items from arrays and collections, optionally shuffled. Unless shuffled, the overall order of the returned items is kept. #4270- Added support for getting multiple properties from
 Toolkit\Objobjects and derived objects, like so: #4268$thing = new Obj(['one' => '👋', 'two' => 'Kirby']); </tr></table>
... (truncated)
Commits
c0a9265Fix check for exception details in Auth::verifyChallenge as wellcec506cFix check for exception details92a16d5Update version number and cert bundle29d4a6fSwitch back to spaces for indentation303f37cUnit tests for new auth behavior411996dAdapt unit tests to newauth.debugoption38214acCatch errors from user.login:failed hookcf0b8c7Hide errors in production during rate limit check501fd97Use fail method throughout theAuthclass922a7aeNew$auth->fail()method with auth.debug option- Additional commits viewable in compare view
 
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) You can disable automated security fix PRs for this repo from the Security Alerts page.