| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
User images and videos will get proxied through
the Camo server in order to keep malicious
sites from collecting the IP address of users.
|
|
|
| |
[ci skip]
|
|\
| |
| |
| |
| |
| |
| | |
'12-0-stable'
Don't display badges when builds are restricted
See merge request gitlab/gitlabhq!3185
|
| |
| |
| |
| |
| |
| |
| |
| | |
Badges were leaked to unauthorized users even when Public Builds
project setting is disabled.
Added guard clause to the controller to check if user can read
build.
|
|\ \
| | |
| | |
| | |
| | | |
Do not allow localhost url redirection in GitHub Integration
See merge request gitlab/gitlabhq!3206
|
| | | |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Server Side Request Forgery mitigation bypass
See merge request gitlab/gitlabhq!3213
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
When we can't resolve the hostname or it is invalid, we shouldn't
even perform the request. This fix also fixes the problem the
SSRF rebinding attack.
We can't stub feature flags outside example blocks. Nevertheless,
there are some actions that calls the UrlBlocker, that are performed
outside example blocks, ie: `set` instruction.
That's why we have to use some signalign mechanism outside the scope
of the specs.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
MR pipeline permissions
See merge request gitlab/gitlabhq!3216
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
MergeRequest#all_pipelines
MergeRequest#all_pipelines fetches Ci::Pipeline records from the source
project, so we should specifically check that project for permissions.
This was already happening for intra-project merge requests, but in the
event that the target and source projects both have private builds, we
should ensure that the project permissions are respected.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Extract SanitizeNodeLink and apply to WikiLinkFilter
See merge request gitlab/gitlabhq!3222
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The SanitizationFilter was running before the WikiFilter. Since
WikiFilter can modify links, we could see links that _should_ be stopped
by SanatizationFilter being rendered on the page. I (kerrizor) had
previously addressed the bug in: https://gitlab.com/gitlab-org/gitlab-ee/commit/7bc971915bbeadb950bb0e1f13510bf3038229a4
However, an additional exploit was discovered after that was merged.
Working through the issue, we couldn't simply shuffle the order of
filters, due to some implicit assumptions about the order of filters, so
instead we've extracted the logic that sanitizes a Nokogiri-generated
Node object, and applied it to the WikiLinkFilter as well.
On moving filters around:
Once we start moving around filters, we get cascading failures; fix one,
another one crops up. Many of the existing filters in the WikiPipeline
chain seem to assume that other filters have already done their work,
and thus operate on a "transform anything that's left" basis;
WikiFilter, for instance, assumes any link it finds in the markdown
should be prepended with the wiki_base_path.. but if it does that, it
also turns `href="@user"` into `href="/path/to/wiki/@user"`, which the
UserReferenceFilter doesn't see as a user reference it needs to
transform into a user profile link. This is true for all the reference
filters in the WikiPipeline.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
'12-0-stable'
Drop feature to take ownership of a trigger token
See merge request gitlab/gitlabhq!3227
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | | |
Removing API and frontend interactions that allowed
users to take ownership of a trigger token.
Removed mentions from the documentation.
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
'security-2873-restrict-slash-commands-to-users-who-can-log-in-12-0' into '12-0-stable'
Restrict slash commands to users who can log in
See merge request gitlab/gitlabhq!3238
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Filter params in MR build service
See merge request gitlab/gitlabhq!3254
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Reusing the existing `IssuableBaseService#filter_params` which uses
the policies to determine what params a user can set, and which values
it can be set to.
This also removed the need for the seperate call to
`IssuableBaseService#ensure_milestone_available`.
The `Issues::BuildService` does not suffer from this because it limits
the params that are assignable to the `title`, `description` and
`milestone_id`.
|
|/ /
| |
| |
| | |
Do not show moved issue id for users that cannot read issue
|
|/
|
| |
[ci skip]
|
|\
| |
| |
| |
| | |
Ability to write a note in a private snippet
See merge request gitlab/gitlabhq!3142
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
In the Snippets::NotesController the noteable was resolved and
authorized through the :snippet_id, so by passing a :target_id for a
different snippet it was possible to create a note on a snippet
where the user would be unauthorized to do so otherwise.
This fixes the problem by ignoring the :target_id and :target_type from
the request, and using the same noteable for creation and authorization.
|
|\ \
| | |
| | |
| | |
| | | |
Prevent Billion Laughs attack
See merge request gitlab/gitlabhq!3146
|
| |/
| |
| |
| |
| |
| | |
It keeps track of the memory being used when loading the YAML file
as well as the depth of nesting.
Track exception when YAML is too big
|
|\ \
| | |
| | |
| | |
| | | |
Fix MR head pipeline leak
See merge request gitlab/gitlabhq!3154
|
| |/ |
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
'security-prevent-detection-of-merge-request-template-name-12-0' into '12-0-stable'
Guests can know whether merge request template name exists or not
See merge request gitlab/gitlabhq!3161
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Previously, if a user was a guest member of a private project, they
could access the merge request template as we were not checking
permission-levels of the user.
When a issue template is asked for, the user must have :read_issue for
the project; or :read_merge_request when a merge request template is
asked for.
We also now rescue_from FileNotFoundError and handle as 404. This is
because RepoTemplateFinder can raise a FileNotFoundError exception,
which Rails previously handled as a 500.
Handling these in a way that is consistent with
ActiveRecord::RecordNotFound exceptions, within controllers that
inherit from Projects::ApplicationController at least, and returning a
404.
https://gitlab.com/gitlab-org/gitlab-ce/issues/54943
|
|\ \
| | |
| | |
| | |
| | | |
Persist tmp snippet uploads at users
See merge request gitlab/gitlabhq!3162
|
| |/
| |
| |
| |
| |
| |
| |
| |
| |
| | |
It persist temporary personal snippets under
user/:id namespaces temporarily while creating
a upload record to track it. If an user gets removed
while it's still a tmp upload, it also gets removed.
If the tmp upload is sent, the upload gets moved to
personal_snippets/:id as before. The upload record
also gets updated to the new model type as well.
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | | |
'12-0-stable'
Expose merge requests count based on user access
See merge request gitlab/gitlabhq!3167
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Count issues related merge requests based on user access level. And
issue can have related MRs from projects where user does not have
access so the number of related merge requests should be adjusted
based on user's ability to access the related MRs.
https://gitlab.com/gitlab-org/gitlab-ce/issues/59581
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
Fix DOS when rendering issue/MR comments
See merge request gitlab/gitlabhq!3171
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
'12-0-stable'
Fix type authorizations in GraphQL
See merge request gitlab/gitlabhq!3172
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
0. Add authorize to LabelType and NamespaceType.
1. Make sure that authorizations on non-nullable fields are also
executed.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
Fix color validation regex causing DoS
See merge request gitlab/gitlabhq!3176
|
| | | | |
| | | | |
| | | | |
| | | | | |
Also prevents ReDoS vulnerability
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
When the SQL query cache is active, the SELECT query for finding
projects to apply service templates returns the same values. This causes
an infinite loop because even though bulk INSERT queries are made, the
cached results never reflect that progress. To fix this, we call
`Project.uncached` around the query to ensure new data is retrieved.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/63595
|
| | | | |
| | | | |
| | | | | |
[ci skip]
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Silence backup warnings when CRON=1 in use
Closes #63703
See merge request gitlab-org/gitlab-ce!30033
(cherry picked from commit d6c7d4c48db51fdc3eb479e53d40ce4358695218)
ad3abd1d Silence backup warnings when CRON=1 in use
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Prevent EE backport migrations from running if CE is not migrated
Closes #63612
See merge request gitlab-org/gitlab-ce!30002
(cherry picked from commit 34df0b303eed0cee83d8c0ec6178d3c575a0b555)
1b063778 Prevent EE backport migrations from running if CE is not migrated
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
'63513-ensure-gitlab-jsoncache-includes-the-gitlab-version-in-the-cache-key' into 'master'
Include the GitLab version in the cache key for Gitlab::JsonCache
See merge request gitlab-org/gitlab-ce!29938
(cherry picked from commit c6f54ab12b5b276dadda0639ea647e9a2b4c1781)
94d9e335 Include the GitLab version in the cache key for Gitlab::JsonCache
1b7e7dde Add CHANGELOG entry
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Omit issues links in merge request entity API response
Closes #63546
See merge request gitlab-org/gitlab-ce!29917
(cherry picked from commit f47e4d025247509ab73e16c3db248b0f9ccb662c)
1b7ab11f Omit issues links in merge request entity API response
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fix notes email with group-level notification email
Closes #63355
See merge request gitlab-org/gitlab-ce!29889
(cherry picked from commit 480eb370a477c3a230cec1ff43a71066ab5be6f9)
bf73ecd7 Fix notes email with group-level notification email
8eb2d7bb Apply suggestion to spec/support/helpers/email_helpers.rb
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fix label serialisation in issue and note hooks
Closes #63473
See merge request gitlab-org/gitlab-ce!29850
(cherry picked from commit 88c8d177f835983a0a47796529906c69376d159d)
da470249 Fix label serialisation in issue and note hooks
4189ffe2 Added labels_hook_attrs method
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Do not rewrite relative links for system notes
Closes #63162
See merge request gitlab-org/gitlab-ce!29825
(cherry picked from commit 51df2ca5c5a1b18155b7bba9bdc26c165533428b)
35a39c1d Do not rewrite relative links for system notes
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Fix missing API notification flags for Microsoft Teams
See merge request gitlab-org/gitlab-ce!29824
(cherry picked from commit 51267258d1c39835c995eaaf29b7df678334ded1)
d5d2f8fb 59702 Fix API notification flags for MS Teams
f7658c0f 59702 Add changelog entry
1ce2c4dc Add missing test for Microsoft Teams notify_only_default_branch flag
|
|/ / /
| | |
| | | |
[ci skip]
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Adds missing class in collapsible sections
Closes #63417
See merge request gitlab-org/gitlab-ce!29804
(cherry picked from commit 22755a4aa2d2884629ef9050227ef461574d9d94)
d3a1468b Adds missing class
|