Skip to content

Commit

Permalink
Merge pull request #6267 from wallabag/release/2.5.3
Browse files Browse the repository at this point in the history
Prepare 2.5.3
  • Loading branch information
j0k3r committed Feb 1, 2023
2 parents 5ac6b6b + b795622 commit 8954100
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 46 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,15 @@
# Changelog

## [2.5.3](https://github.com/wallabag/wallabag/tree/2.5.3)
[Full Changelog](https://github.com/wallabag/wallabag/compare/2.5.2...2.5.3)

### Security fixes
* Fix GHSA-qwx8-mxxx-mg96 https://github.com/wallabag/wallabag/commit/0f7460dbab9e29f4f7d2944aca20210f828b6abb by @Kdecherf, thanks to @bAuh0lz
* Fix GHSA-mrqx-mjc4-vfh3 https://github.com/wallabag/wallabag/commit/5ac6b6bff9e2e3a87fd88c2904ff3c6aac40722e by @Kdecherf, thanks to @bAuh0lz

### Meta
* Update deps before 2.5.3 by @j0k3r in https://github.com/wallabag/wallabag/pull/6241

## [2.5.2](https://github.com/wallabag/wallabag/tree/2.5.2)
[Full Changelog](https://github.com/wallabag/wallabag/compare/2.5.1...2.5.2)

Expand Down
2 changes: 1 addition & 1 deletion app/config/wallabag.yml
@@ -1,5 +1,5 @@
wallabag_core:
version: 2.5.2
version: 2.5.3
paypal_url: "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9UBA65LG3FX9Y&lc=gb"
languages:
en: 'English'
Expand Down
75 changes: 38 additions & 37 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions src/Wallabag/CoreBundle/Controller/ExportController.php
Expand Up @@ -25,17 +25,17 @@ class ExportController extends Controller
*
* @return \Symfony\Component\HttpFoundation\Response
*/
public function downloadEntryAction(Request $request, $format)
public function downloadEntryAction(Request $request, $format, $id)
{
try {
try {
$entry = $this->get('wallabag_core.entry_repository')
->find((int) $request->query->get('id'));
->find((int) $id);

/**
/*
* We duplicate EntryController::checkUserAction here as a quick fix for an improper authorization vulnerability
*
* This should be eventually rewritten
*/
*/
if (null === $entry || null === $this->getUser() || $this->getUser()->getId() !== $entry->getUser()->getId()) {
throw new NotFoundHttpException();
}
Expand Down
9 changes: 6 additions & 3 deletions tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php
Expand Up @@ -72,9 +72,12 @@ public function testForbiddenEntryId()
$this->logInAs('admin');
$client = $this->getClient();

// Entry with id 3 is owned by the user bob
// See EntryFixtures
$client->request('GET', '/export/3.mobi');
$content = $client->getContainer()
->get('doctrine.orm.entity_manager')
->getRepository('WallabagCoreBundle:Entry')
->findOneByUsernameAndNotArchived('bob');

$client->request('GET', '/export/' . $content->getId() . '.mobi');

$this->assertSame(404, $client->getResponse()->getStatusCode());
}
Expand Down

0 comments on commit 8954100

Please sign in to comment.