Exploit databaseDownload repository ZIP
GH-3f2f1dfa083fb13cb008c47db8f2910d
mogwailabs/cve-2023-32692-codeigniter4
Sources for CVE-2023-32692
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files37
mogwailabs/cve-2023-32692-codeigniter4Revision 190ca52d8204
- ↑..Parent directory
- Boot/
- App.php
- Autoload.php
- CURLRequest.php
- Cache.php
- Constants.php
- ContentSecurityPolicy.php
- Cookie.php
- Database.php
- DocTypes.php
- Email.php
- Encryption.php
- Events.php
- Exceptions.php
- Feature.php
- Filters.php
- ForeignCharacters.php
- Format.php
- Generators.php
- Honeypot.php
- Images.php
- Kint.php
- Logger.php
- Migrations.php
- Mimes.php
- Modules.php
- Pager.php
- Paths.php
- Publisher.php
- Routes.php
- Security.php
- Services.php
- Session.php
- Toolbar.php
- UserAgents.php
- Validation.php
- View.php
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
app/Config/Events.php
PHP · 1,565 bytes<?php
namespace Config;
use CodeIgniter\Events\Events;
use CodeIgniter\Exceptions\FrameworkException;
/*
* --------------------------------------------------------------------
* Application Events
* --------------------------------------------------------------------
* Events allow you to tap into the execution of the program without
* modifying or extending core files. This file provides a central
* location to define your events, though they can always be added
* at run-time, also, if needed.
*
* You create code that can execute by subscribing to events with
* the 'on()' method. This accepts any form of callable, including
* Closures, that will be executed when the event is triggered.
*
* Example:
* Events::on('create', [$myInstance, 'myMethod']);
*/
Events::on('pre_system', static function () {
if (ENVIRONMENT !== 'testing') {
if (ini_get('zlib.output_compression')) {
throw FrameworkException::forEnabledZlibOutputCompression();
}
while (ob_get_level() > 0) {
ob_end_flush();
}
ob_start(static fn ($buffer) => $buffer);
}
/*
* --------------------------------------------------------------------
* Debug Toolbar Listeners.
* --------------------------------------------------------------------
* If you delete, they will no longer be collected.
*/
if (CI_DEBUG && ! is_cli()) {
Events::on('DBQuery', 'CodeIgniter\Debug\Toolbar\Collectors\Database::collect');
Services::toolbar()->respond();
}
});