Security Vulnerabilities in AI-Reviewed iShortn Code - #2856
Open
carlospolop wants to merge 1 commit into
Open
carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://zeroquarry.com/research/security-vulnerabilities-in-ai-reviewed-code Content Categories: Based on the analysis, this content was categorized under "Pentesting Web — update IDOR, Mass Assignment CWE-915, and SSRF sections with cross-tenant ownership predicates, TypeScript runtime-validation pitfalls, redirect revalidation, and stored/second-order SSRF". 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
The post documents a source-code security review of iShortn, a self-hosted, open-source URL shortener supporting custom domains, analytics, QR codes, password-protected links, bio pages, and a REST API. ZeroQuarry, a repository-level security analysis tool designed to trace authorization, tenant boundaries, deployment context, and complete attack paths, found 13 high-severity and 33 medium-severity...
🔧 Technical Details
Public identifiers combined with missing object authorization: In a multi-tenant API, authentication does not protect an object if the database lookup uses only attacker-controlled or public identifiers. If an endpoint selects a record using values such as
domainandaliasbut omits the authenticated user or tenant ID, an attacker can authenticate with their own credentials and substitute identifiers belonging to another account. Test this by obtaining public identifiers from one tenant and using them in authenticated GET, PATCH, or DELETE requests from a second tenant. Every read and mutation must include an ownership predicate or operate on a record whose ownership was already authorized.Mass assignment behind compile-time TypeScript types: A TypeScript interface or type annotation does not validate incoming JSON because it is removed at runtime. If a handler copies all body properties into an ORM or database ...
🤖 Agent Actions
Implemented updates in:
src/pentesting-web/idor.mdsrc/pentesting-web/mass-assignment-cwe-915.mdsrc/pentesting-web/ssrf-server-side-request-forgery/README.mdAdded numbered citations to the original remediation commits and ZeroQuarry research.
Validation passed:
git diff --checkmdbook buildcould not run becausemdbookis not installed.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.