Mentioned unites are at the same time .Then we have to increase the bounty.
The report describes a potential null byte interaction error in curl's URL API where string functions may append null characters incorrectly, and a patch is proposed to always include the scheme in the URL. The impact is not clearly demonstrated, and the conditions are described as narrow and conflicting.
Originally disclosed on HackerOne
- Disclosed after 6 days
Summary:
Once you done with the coding then we have to increase the bounty and then write the reviwe on the same
[Once we find the error then we have to submit the margin and find the events ]
Affected version
Use a language that is not susceptible to these issues. However, be careful of null byte interaction errors (CWE-626) with lower-level constructs that may be written in a language that is susceptible.
Steps To Reproduce:
Ensure that all string functions used are understood fully as to how they append null characters. Also, be wary of off-by-one errors when appending nulls to the end of strings.
- --- a/lib/urlapi.c
+++ b/lib/urlapi.c @@ -1732,7 +1732,8 @@ static CURLUcode set_url(CURLU u, CURLUPart part, size_t nalloc, / if the old URL is incomplete (we cannot get an absolute URL in 'oldurl'), replace the existing with the new */
- uc = curl_url_get(u, CURLUPART_URL, &oldurl, flags);
- /* always include "scheme://" so redirect_url's pointer arithmetic is valid */
- uc = curl_url_get(u, CURLUPART_URL, &oldurl, flags & ~CURLU_NO_GUESS_SCHEME); if(uc == CURLUE_OUT_OF_MEMORY) return uc; else if(uc)
- [Around the same time we have reproduce the vector]
- [add step]
Supporting Material/References:
The conditions are narrow/conflicting eg.app needs to do something no app would do (CURLU_GUESS_SCHEME with CURLU_NO_GUESS_SCHEME).
Impact
Summary:
"Forced browsing" is a step-based manipulation involving the omission of one or more steps, whose order is assumed to be immutable. The application does not verify that the first step was performed successfully before the second step. The consequence is typically "authentication bypass" or "path disclosure," although it can be primary to all kinds of weaknesses, especially in languages such as PHP, which allow external modification of assumed-immutable variables.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a null byte interaction error (CWE-626) in string handling within curl's URL API, where null characters may be appended incorrectly.
Impact
The report does not demonstrate a concrete impact; it only notes the conditions are narrow and conflicting.
What the attacker needed
Application uses curl URL API; specific conflicting flags used
The fix
The report suggests using a language not susceptible to these issues and being careful with null byte handling, and includes a code patch to always include the scheme in the URL.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
This report talks about a possible bug in a library called curl that handles web addresses. The author thinks that when the library builds a URL, it might mishandle special characters that mark the end of a string, called null bytes, which could cause unexpected behaviour. However, the report does not show a clear attack or impact.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.