Exploit databaseDownload repository ZIP
GH-ea821316336f01071e5d83d15c2dd13b
opsxcq/exploit-cve-2017-7494
Sources for CVE-2017-7494
38 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files56
opsxcq/exploit-cve-2017-7494Revision 4d0bde4f1a7d
- ↑..Parent directory
- tests/
- acl.c
- acl_read.c
- acl_util.c
- anr.c
- descriptor.c
- dirsync.c
- dns_notify.c
- dsdb_notification.c
- extended_dn_in.c
- extended_dn_out.c
- extended_dn_store.c
- instancetype.c
- lazy_commit.c
- linked_attributes.c
- local_password.c
- netlogon.c
- new_partition.c
- objectclass.c
- objectclass_attrs.c
- objectguid.c
- operational.c
- partition.c
- partition.h
- partition_init.c
- partition_metadata.c
- password_hash.c
- password_modules.h
- proxy.c
- ranged_results.c
- repl_meta_data.c
- resolve_oids.c
- ridalloc.c
- rootdse.c
- samba3sam.c
- samba3sid.c
- samba_dsdb.c
- samba_secrets.c
- samldb.c
- schema_data.c
- schema_load.c
- schema_util.c
- secrets_tdb_sync.c
- show_deleted.c
- simple_dn.c
- simple_ldap_map.c
- subtree_delete.c
- subtree_rename.c
- tombstone_reanimate.c
- update_keytab.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/source4/dsdb/samdb/ldb_modules/simple_dn.c
C · 2,086 bytes/*
ldb database library
Copyright (C) Andrew Bartlett 2010
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/*
* Name: ldb
*
* Component: ldb dn simplification module
*
* Description: Module to strip off extended componenets from search DNs (not accepted by OpenLDAP backends)
*
* Author: Andrew Bartlett
*/
#include "includes.h"
#include "ldb_module.h"
#include "dsdb/samdb/ldb_modules/util.h"
/* search */
static int simple_dn_search(struct ldb_module *module, struct ldb_request *req)
{
struct ldb_context *ldb;
struct ldb_request *down_req;
struct ldb_dn *new_base;
int ret;
ldb = ldb_module_get_ctx(module);
new_base = ldb_dn_copy(req, req->op.search.base);
if (!new_base) {
return ldb_module_oom(module);
}
ldb_dn_remove_extended_components(new_base);
ret = ldb_build_search_req_ex(&down_req,
ldb, req,
new_base,
req->op.search.scope,
req->op.search.tree,
req->op.search.attrs,
req->controls,
req, dsdb_next_callback,
req);
LDB_REQ_SET_LOCATION(down_req);
if (ret != LDB_SUCCESS) {
return ldb_operr(ldb);
}
talloc_steal(down_req, new_base);
return ldb_next_request(module, down_req);
}
static const struct ldb_module_ops ldb_simple_dn_module_ops = {
.name = "simple_dn",
.search = simple_dn_search
};
int ldb_simple_dn_module_init(const char *version)
{
LDB_MODULE_CHECK_VERSION(version);
return ldb_register_module(&ldb_simple_dn_module_ops);
}