Systemic Risks in Managed PostgreSQL Exploiting PostGIS addr... - #2709
Open
carlospolop wants to merge 1 commit into
Open
Systemic Risks in Managed PostgreSQL Exploiting PostGIS addr...#2709carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://mehmetince.net/part-1-6-systemic-risks-in-the-managed-postgresql-industry-extension-risks-are-real-exploiting-postgis-memory-corruption-bug-at-neondb-supabase-and-many-more Content Categories: Based on the analysis, this content was categorized under "Network Services Pentesting > 5432,5433 - Pentesting PostgreSQL > Native Extension Security and PostGIS address_standardizer Memory Corruption". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Overview
The article analyzes CVE-2026-73514, a missing bounds check in PostGIS's native
address_standardizerPostgreSQL extension. A database user able to invokestandardize_address()can select a custom rules table and place attacker-controlled integers in the rule'sTypeandWeightfields. The extension validates input and output token symbols but, in the vulnerable code, does not enforce minimum or maximum values...🔧 Technical Details
Trace caller-selected database objects into native extension code: When a native database extension allows the caller to select a lookup, configuration, grammar, or rules table, every value fetched from that table must be treated as attacker-controlled native input. Follow the complete SQL-to-C path and identify values reaching array indices, offsets, lengths, allocation sizes, enum-like selectors, object fields, or pointer operations. In this case, the path was
standardize_address() -> load_rules() -> parse_rule() -> rules_add_rule() -> classify_link(), and the finalTypeandWeightintegers reached C code without bounds validation.Convert an unchecked enum-like value into relative OOB access: A field intended to represent one of a small number of classes becomes a memory-corruption primitive if used directly as an array index. For an array of five pointers, valid values are
0..4🤖 Agent ActionsUpdatedsrc/binary-exploitation/array-indexing.mdwith:address_standardizerexample and crash probe.Validation passed with
git diff --check; only this file was modified, and no forbidden sources were added.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.